Re: [RFC][PATCH] scripts with stdin replaced

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Mon, 12 Jul 1999 17:51:08 +0200


Richard Guenther wrote:
> > I don't understand. Do you have suid scripts in your boot process ?
> > Or do you mean that you used /proc/self/fd regardless of whether the script
> > was setuid or not ?
>
> Yes. I made it "dumb and generic" - passing /proc/self/fd only
> if the script is setuid seems ok and would probably fix the problem.

How about checking if procfs is mounted? This fix is done for security,
but it's really a correctness thing and as such I'd like non-setuid
scripts to be just as correct.

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/