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>
Tue, 30 Jan 2018 03:39:59 +0000 (19:39 -0800)
commit13d98fd55be7f13407f90756ee92b34a2c8dead8
tree7e2fa4304fcf307b024bad0ae4e059290e9e810f
parent571be1739672196242a7041a786bdcbce4a86a16
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/xattr.c