diff options
author | Andrew Morton <akpm@osdl.org> | 2004-02-24 04:04:58 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-02-24 04:04:58 -0800 |
commit | 27d5bd9d446dd67398efc390004f864d4295e0ca (patch) | |
tree | 4f53d18871a2d93160fda529e37aa9a5e2a5f5b4 /security | |
parent | 38ff32ef2bfda1c12f7d35a2d46d14af3328415a (diff) | |
download | history-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.c | 4 |
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); } |