ANDROID: xattr: Pass EOPNOTSUPP to permission2
authorDaniel Rosenberg <drosen@google.com>
Tue, 23 Jan 2018 22:34:38 +0000 (14:34 -0800)
committerDaniel Rosenberg <drosen@google.com>
Wed, 24 Jan 2018 21:19:26 +0000 (21:19 +0000)
commit29eadc4b5c1301222b8c2aaa03b199d8e6e7b738
tree5069d2ccddcfb9662d0644b49b0b25455c4c3adf
parente9dabe69deb8077d5bf394cc29b1d6592efa0740
ANDROID: xattr: Pass EOPNOTSUPP to permission2

The permission call for xattr operations happens regardless of
whether or not the xattr functions are implemented.

The xattr functions currently don't have support for permission2.
Passing EOPNOTSUPP as the mount point in xattr_permission allows
us to return EOPNOTSUPP early in permission2, if the filesystem
supports it.

Change-Id: I9d07e4cd633cf40af60450ffbff7ac5c1b4e8c2c
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug: 35848445
fs/sdcardfs/inode.c
fs/xattr.c