linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Umask and ACL on NFS
@ 2010-12-02 11:09 Aneesh Kumar K.V
  2010-12-02 22:30 ` J. Bruce Fields
  0 siblings, 1 reply; 2+ messages in thread
From: Aneesh Kumar K.V @ 2010-12-02 11:09 UTC (permalink / raw)
  To: J. Bruce Fields, Trond Myklebust; +Cc: linux-nfs


Hi,

POSIX ACL and Richacl want to apply umask on file creation only when we don't have any
inheritable ACEs on the parent directory. Currently with nfsv4 code we do
check for POSIX ACL in nfs_atomic_lookup, but i don't find where we set
the MS_POSIXACL bit for the nfsv4 code.

Even if we try to do something like below

   if (nfs4_server_supports_acls(..))
      sb->s_flags |= MS_POSIXACL;

I guess we could get it wrong. The above implies we may end up not
applying umask for a server supporting ACL even if the parent 
directory don't have inheritable ACEs.

I found a proposal to add umask attribute at
http://www.ietf.org/mail-archive/web/nfsv4/current/msg07159.html
http://www.ietf.org/proceedings/74/slides/nfsv4-3.pdf
                                
So what is the expected behaviour for NFS. Should we always apply
umask (which is what it currently does) irrespective of whether
parent directory have inheritable ACEs or not ?

-aneesh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-02 22:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-02 11:09 Umask and ACL on NFS Aneesh Kumar K.V
2010-12-02 22:30 ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).