Commit 27d5bd9d authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Change ENOTSUPP to EOPNOTSUPP

From: James Morris <jmorris@redhat.com>

ENOTSUPP is the wrong value, and should not be returned to userspace.
parent 38ff32ef
......@@ -2127,7 +2127,7 @@ static int selinux_inode_setxattr(struct dentry *dentry, char *name, void *value
sbsec = inode->i_sb->s_security;
if (sbsec->behavior == SECURITY_FS_USE_MNTPOINT)
return -ENOTSUPP;
return -EOPNOTSUPP;
AVC_AUDIT_DATA_INIT(&ad,FS);
ad.u.fs.dentry = dentry;
......@@ -2185,7 +2185,7 @@ static int selinux_inode_getxattr (struct dentry *dentry, char *name)
struct superblock_security_struct *sbsec = inode->i_sb->s_security;
if (sbsec->behavior == SECURITY_FS_USE_MNTPOINT)
return -ENOTSUPP;
return -EOPNOTSUPP;
return dentry_has_perm(current, NULL, dentry, FILE__GETATTR);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment