From: Steve G Date: Tue, 14 Aug 2007 19:50:46 +0000 (-0700) Subject: SELinux: correct error code in selinux_audit_rule_init X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3ad40d647d5e7c320385649e5eb422a5e89e035d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git SELinux: correct error code in selinux_audit_rule_init Corrects an error code so that it is valid to pass to userspace. Signed-off-by: Steve Grubb Signed-off-by: James Morris --- diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index f00161ef99ed..6100fc023055 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c @@ -2127,7 +2127,7 @@ int selinux_audit_rule_init(u32 field, u32 op, char *rulestr, *rule = NULL; if (!ss_initialized) - return -ENOTSUPP; + return -EOPNOTSUPP; switch (field) { case AUDIT_SUBJ_USER: