changed error return for user access to trusted xattr
When a user queries an extended attribute in the trusted namespace, the traditional error return was EPERM. This has been recently changed to ENODATA. See https://lkml.org/lkml/2011/5/27/199edge.strict_endians
parent
0aa68c128d
commit
c9edd32113
|
@ -2848,7 +2848,7 @@ static void ntfs_fuse_getxattr(fuse_req_t req, fuse_ino_t ino, const char *name,
|
|||
/* trusted only readable by root */
|
||||
if ((namespace == XATTRNS_TRUSTED)
|
||||
&& security.uid) {
|
||||
res = -EPERM;
|
||||
res = -ENODATA;
|
||||
goto out;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -2791,7 +2791,7 @@ static int ntfs_fuse_getxattr(const char *path, const char *name,
|
|||
/* trusted only readable by root */
|
||||
if ((namespace == XATTRNS_TRUSTED)
|
||||
&& security.uid)
|
||||
return -EPERM;
|
||||
return -ENODATA;
|
||||
#endif
|
||||
ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
|
||||
if (!ni)
|
||||
|
|
Loading…
Reference in New Issue