提交 ec418781 编写于 作者: E Eric Paris 提交者: James Morris

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: NEric Paris <eparis@redhat.com>
Signed-off-by: NJames Morris <jmorris@namei.org>
上级 8c086340
...@@ -136,7 +136,7 @@ static inline int selinux_audit_rule_init(u32 field, u32 op, ...@@ -136,7 +136,7 @@ static inline int selinux_audit_rule_init(u32 field, u32 op,
char *rulestr, char *rulestr,
struct selinux_audit_rule **rule) struct selinux_audit_rule **rule)
{ {
return -ENOTSUPP; return -EOPNOTSUPP;
} }
static inline void selinux_audit_rule_free(struct selinux_audit_rule *rule) static inline void selinux_audit_rule_free(struct selinux_audit_rule *rule)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册