Re: fcntl(2) and other file systems like XFS

From: Stephen C. Tweedie (sct@redhat.com)
Date: Tue Mar 21 2000 - 11:11:07 EST


Hi,

On Tue, Mar 21, 2000 at 05:07:22PM +0100, Jamie Lokier wrote:
> always open the file object, but you can't do much with it. For a
> device, the device wouldn't get opened, but fstat() would return the
> same device information as stat() returns.

Absolutely. However, reworking the entire VFS to make absolutely sure
that there are no holes in the implementation, and auditing every suid
binary in the system to make sure that there are no security holes
introduced by adding new and interesting types of file descriptors,
is a bit more work than adding a new inode-operating syscall. :-)

O_NONE has been proposed before, but the devil is in the detail.

--Stephen

-
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/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:33 EST