aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-24 04:04:58 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-02-24 04:04:58 -0800
commit27d5bd9d446dd67398efc390004f864d4295e0ca (patch)
tree4f53d18871a2d93160fda529e37aa9a5e2a5f5b4 /security
parent38ff32ef2bfda1c12f7d35a2d46d14af3328415a (diff)
downloadhistory-27d5bd9d446dd67398efc390004f864d4295e0ca.tar.gz
[PATCH] Change ENOTSUPP to EOPNOTSUPP
From: James Morris <jmorris@redhat.com> ENOTSUPP is the wrong value, and should not be returned to userspace.
Diffstat (limited to 'security')
-rw-r--r--security/selinux/hooks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 099e1eaa729f81..d7cca0131e49f9 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -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);
}