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/199
edge.strict_endians
Jean-Pierre André 2012-01-23 17:25:55 +01:00
parent 0aa68c128d
commit c9edd32113
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)