Re: Some ideas for the kernel wishlist

Roderich Schupp (rsch@ExperTeam.de)
Sun, 5 Apr 1998 16:19:28 +0200


Marek (marekm@i17linuxb.ists.pwr.wroc.pl) said:
> Here are some random ideas, please consider adding them to the
> wishlist (http://www.cs.uml.edu/~acahalan/linux/wishlist.html).
> Thanks!

> - fat32 filesystem support (patches are available, but are not
> in the standard kernel as of 2.1.90, and not on the wishlist),
I was under the impression that it's included with the vfat stuff.

> - "real" /dev/fd/n devices like on some other systems where,
> if the file descriptor n is open, these two system calls
> have the same effect:
> fd = open("/dev/fd/n", mode);
> fd = dup(n);
> (mode is ignored, EBADF if file descriptor n is not open;
> note that the /dev/fd -> /proc/self/fd symlink is not
> exactly the same).
Correct, opening /proc/self/fd/n doesn't give you a shared file
descriptor. Is this a bug or a feature? Is it possible to change this?
Or is it a job for ... DEVFS?
> This can be useful to allow reasonably
> safe implementation of setuid scripts (open the script
> and pass /dev/fd/n as the script name to the interpreter).
Checking on this, I was shocked to discover that Linux still doesn't
support setuid scripts. BTW looking at binfmt_script.c I see that it
restricts you to 127 characters for the name of the script interpreter
and the arguments combined (the number 128 is event hard-coded in
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
to guess the flavor of Un*x from it, I'd bet on some darn old SysV3
system :(
Cheers, Roderich

--
             "Report all obscene mail to your Potsmaster"
Roderich Schupp          mailto:rsch@ExperTeam.de
ExperTeam GmbH           http://www.experteam.de/
Munich, Germany               linux:2.1.92

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