On Sat, 25 Mar 2000, Jamie Lokier wrote:
> O_NONE already does some kind of permission check -- you can only open a
> file that has read and write access. You certainly can't open an
> inaccessible file.
Yes thank God. I was pretty concerned when I first saw the O_NONE
thread! Many Linux ioctl() routines check permissions of some kind but
many don't. Also, there would have been many file descriptor related
syscalls to check. For example, havoc could probably be wreaked using the
file locking calls.
But luckily, as Jamie says, you cannot use O_NONE to open an inaccessible
file (or device, etc)
Chris