Re: [nameidata 1/2] Don't pass NULL nameidata to vfs_create

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andreas Gruenbacher
Date: Tuesday, April 17, 2007 - 5:09 am

On Monday 16 April 2007 18:45, Christoph Hellwig wrote:

Well, the information implicitly provided is "no intent": In do_create() in
ipc/mqueue.c intents would be pretty pointless because the mqueue filesystem
is local. In fs/nfsd/vfs.c, intents would make slightly more sense assuming
that the underlying filesystem eported via nfsd is remote. That's an
optimization, and not even a very important one.


Pathname wise, NFSv4 should look like any other filesystem on the client side. 
On the Server side, the concept of pathnames doesn't really fly for nfs: if a 
directory contains more than one link to the same file, there is no way to 
tell those aliases from each other from the file descriptor. In addition, 
computing even the somewhat ambiguous pathnames that can be computed would
require subtree checking. But trying to confine nfsd is pretty pointless 
anyway: the deamon is privileged and can do whatever it wants. It makes more
sense to export the right directories with the right permissions in the first
place.

Thanks,
Andreas
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [AppArmor 01/41] Pass struct vfsmount to the inode_cre ..., Christoph Hellwig, (Thu Apr 12, 3:06 am)
[nameidata 1/2] Don't pass NULL nameidata to vfs_create, Andreas Gruenbacher, (Mon Apr 16, 9:11 am)
Re: [nameidata 1/2] Don't pass NULL nameidata to vfs_create, Christoph Hellwig, (Mon Apr 16, 9:21 am)
[nameidata 2/2] Pass no useless nameidata to the create, l ..., Andreas Gruenbacher, (Mon Apr 16, 9:29 am)
Re: [nameidata 2/2] Pass no useless nameidata to the creat ..., Christoph Hellwig, (Mon Apr 16, 9:39 am)
Re: [nameidata 1/2] Don't pass NULL nameidata to vfs_create, Andreas Gruenbacher, (Mon Apr 16, 9:40 am)
Re: [nameidata 2/2] Pass no useless nameidata to the creat ..., Andreas Gruenbacher, (Mon Apr 16, 9:44 am)
Re: [nameidata 1/2] Don't pass NULL nameidata to vfs_create, Christoph Hellwig, (Mon Apr 16, 9:45 am)
Re: [nameidata 1/2] Don't pass NULL nameidata to vfs_create, Andreas Gruenbacher, (Tue Apr 17, 5:09 am)
Re: [nameidata 1/2] Don't pass NULL nameidata to vfs_create, Andreas Gruenbacher, (Fri May 11, 8:59 am)
Re: [AppArmor 01/41] Pass struct vfsmount to the inode_cre ..., Andreas Gruenbacher, (Wed May 23, 12:06 pm)
Re: [AppArmor 01/41] Pass struct vfsmount to the inode_cre ..., Andreas Gruenbacher, (Thu May 24, 2:16 am)