Re: [PATCH] address_space_operations unification

From: Steve Dodd (steved@loth.demon.co.uk)
Date: Sat May 06 2000 - 07:42:10 EST


On Sat, May 06, 2000 at 12:02:40PM +0200, Trond Myklebust wrote:

> This is definitely one patch I'd like to see in the kernel. The main
> interest for NFS is the fact that you can (and do) send the struct file to
> readpage() on regular files. This will finally allow us to resolve the
> issue of using the correct RPC credentials for suid processes under NFS.
>
> I would have proposed something like this myself, but I got the
> impression early on in the 2.3.x development that (at least some) people
> involved in the VFS rewrite were violently opposed to the idea.

The only issue I can see is the one Al brought up earlier: if one process
has a file mmap()d, and dirties a page, and then another process write()s the
same page, the first process's changes will be sent with the credentials
of the second. This could get nasty if the first process's permission to
write had been revoked in the meantime (if this can happen).

-
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 : Sun May 07 2000 - 21:00:19 EST