]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Change ENOTSUPP to EOPNOTSUPP
authorAndrew Morton <akpm@osdl.org>
Tue, 24 Feb 2004 12:04:58 +0000 (04:04 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 24 Feb 2004 12:04:58 +0000 (04:04 -0800)
From: James Morris <jmorris@redhat.com>

ENOTSUPP is the wrong value, and should not be returned to userspace.

security/selinux/hooks.c

index 099e1eaa729f81377a640d2a4018fa64141920e8..d7cca0131e49f95223273fcf5c20693edfe5150c 100644 (file)
@@ -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);
 }