Skip to content

Commit

Permalink
SELinux: correct error code in selinux_audit_rule_init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steve G authored and James Morris committed Aug 16, 2007
1 parent 28e8351 commit 3ad40d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/selinux/ss/services.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3ad40d6

Please sign in to comment.