]> Git Repo - linux.git/commit
fs: get_acl() must be allowed to return EOPNOTSUPP
authorTrond Myklebust <[email protected]>
Fri, 31 Jan 2014 19:25:19 +0000 (14:25 -0500)
committerTrond Myklebust <[email protected]>
Mon, 3 Feb 2014 22:12:37 +0000 (17:12 -0500)
commit789b663ae3d427ea9c50505339a13276e7228c9d
treeb5e9bccd77fa11d0988def1ee440af17834ef186
parent8f493b9cfcd8941c6b27d6ce8e3b4a78c094b3c1
fs: get_acl() must be allowed to return EOPNOTSUPP

posix_acl_xattr_get requires get_acl() to return EOPNOTSUPP if the
filesystem cannot support acls. This is needed for NFS, which can't
know whether or not the server supports acls until it tries to get/set
one.
This patch converts posix_acl_chmod and posix_acl_create to deal with
EOPNOTSUPP return values from get_acl().

Reported-by: Russell King <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Cc: Al Viro [email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Tested-by: Takashi Iwai <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
fs/posix_acl.c
This page took 0.050716 seconds and 4 git commands to generate.