Re: Some ideas for the kernel wishlist

Ben Pfaff (pfaffben@pilot.msu.edu)
06 Apr 1998 20:11:22 -0400


hpa@transmeta.com said:
> The Linux kernel is doing exactly the right thing (honouring the
> setuid bit on the interpreter, not on the script itself.) If the
> interpreter is equipped to handle setuid scripts, it can securely
> fstat() and setuid(). Perl does this, for example. bash doesn't,
> because bash isn't equipped to handle setuid scripts securely.
What do you mean - that I should have a setuid-root perl lying around?

Yes. You probably do:

blp:/raid/home/blp$ ls -l /usr/bin/sperl5.00404
-rws--x--x 2 root root 493324 Mar 11 04:42 /usr/bin/sperl5.00404

hpa@transmeta.com said:
>> several places). In fact, there can be at most one argument to the
>> interpreter. If someone had described this limits to me and asked me
> That's because it's up to the interpreter to break up the argument
> string.
Just for kicks: could you name an interpreter that does that?

Perl will break up the argument string itself, I believe.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu