]> git.baikalelectronics.ru Git - kernel.git/commit
fs: get_acl() must be allowed to return EOPNOTSUPP
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 31 Jan 2014 19:25:19 +0000 (14:25 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 3 Feb 2014 22:12:37 +0000 (17:12 -0500)
commit7fa60f6883cb0fedd43b3e86d9e2b9fc6e33b395
treeb5e9bccd77fa11d0988def1ee440af17834ef186
parent9f6effa7df20c57d2e33eaec1e3cd0104bd2e5dd
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 <linux@arm.linux.org.uk>
Link: http://lkml.kernel.org/r/20140130140834.GW15937@n2100.arm.linux.org.uk
Cc: Al Viro viro@zeniv.linux.org.uk>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/posix_acl.c