From: Eric Paris Date: Fri, 16 Nov 2007 21:35:56 +0000 (-0500) Subject: SELinux: return EOPNOTSUPP not ENOTSUPP X-Git-Tag: v2.6.24-rc3~1^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec418781708f89ef6eb8eb5ef1eeb79a6bec9d69;p=linux-2.6 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 Signed-off-by: James Morris --- diff --git a/include/linux/selinux.h b/include/linux/selinux.h index d1b7ca6c1c..6080f73fc8 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)