Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ec418781708f89ef6eb8eb5ef1eeb79a6bec9d69
Commit:     ec418781708f89ef6eb8eb5ef1eeb79a6bec9d69
Parent:     8c0863403f109a43d7000b4646da4818220d501f
Author:     Eric Paris <[EMAIL PROTECTED]>
AuthorDate: Fri Nov 16 16:35:56 2007 -0500
Committer:  James Morris <[EMAIL PROTECTED]>
CommitDate: Sat Nov 17 10:38:16 2007 +1100

    SELinux: return EOPNOTSUPP not ENOTSUPP
    
    ENOTSUPP is not a valid error code in the kernel (it is defined in some
    NFS internal error codes and has been improperly used other places).  In
    the !CONFIG_SECURITY_SELINUX case though it is possible that we could
    return this from selinux_audit_rule_init().  This patch just returns the
    userspace valid EOPNOTSUPP.
    
    Signed-off-by: Eric Paris <[EMAIL PROTECTED]>
    Signed-off-by: James Morris <[EMAIL PROTECTED]>
---
 include/linux/selinux.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/selinux.h b/include/linux/selinux.h
index d1b7ca6..6080f73 100644
--- a/include/linux/selinux.h
+++ b/include/linux/selinux.h
@@ -136,7 +136,7 @@ static inline int selinux_audit_rule_init(u32 field, u32 op,
                                           char *rulestr,
                                           struct selinux_audit_rule **rule)
 {
-       return -ENOTSUPP;
+       return -EOPNOTSUPP;
 }
 
 static inline void selinux_audit_rule_free(struct selinux_audit_rule *rule)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to