lkml.org 
[lkml]   [2004]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.033 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site