Messages in this thread Patch in this message | | | Date | Tue, 24 Feb 2004 13:49:48 -0500 (EST) | From | James Morris <> | Subject | [SELINUX] Change ENOTSUPP to EOPNOTSUPP |
| |
ENOTSUPP is the wrong value, and should not be returned to userspace.
diff -purN -X dontdiff linux-2.6.3-mm3.o/security/selinux/hooks.c linux-2.6.3-mm3.w/security/selinux/hooks.c --- linux-2.6.3-mm3.o/security/selinux/hooks.c 2004-02-23 10:52:59.000000000 -0500 +++ linux-2.6.3-mm3.w/security/selinux/hooks.c 2004-02-23 11:16:20.848999216 -0500 @@ -2129,7 +2129,7 @@ static int selinux_inode_setxattr(struct 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; @@ -2187,7 +2187,7 @@ static int selinux_inode_getxattr (struc 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); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |