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 <linux_4ever@yahoo.com> Signed-off-by: James Morris <jmorris@halo.namei>
This commit is contained in:
parent
28e8351ac2
commit
3ad40d647d
|
@ -2127,7 +2127,7 @@ int selinux_audit_rule_init(u32 field, u32 op, char *rulestr,
|
||||||
*rule = NULL;
|
*rule = NULL;
|
||||||
|
|
||||||
if (!ss_initialized)
|
if (!ss_initialized)
|
||||||
return -ENOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
|
|
||||||
switch (field) {
|
switch (field) {
|
||||||
case AUDIT_SUBJ_USER:
|
case AUDIT_SUBJ_USER:
|
||||||
|
|
Loading…
Reference in New Issue