Re: [PATCH] new syscall: flink

Alan Cox (alan@lxorguk.ukuu.org.uk)
06 Apr 2003 22:12:40 +0100


On Sul, 2003-04-06 at 20:56, Oliver Neukum wrote:
> If you have an fd, the permissions based on the path are already
> bypassed, whether you can call flink or not, aren't they?

It is actually rather more complicated. Suppose I give you a pipe
pair handle. You can flink what was a private object and has no
meaning as a name.

Suppose I give you a socket what does the call man ?

Suppose I give you a handle to an anonymous mapping ?

Suppose I give you a handle to data, how do you know what disk
it belongs to ?

Suppose I give you an O_RDONLY handle to a file which you then
flink and gain write access too ?

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