diff options
author | Steve G <linux_4ever@yahoo.com> | 2007-08-14 15:50:46 -0400 |
---|---|---|
committer | James Morris <jmorris@halo.namei> | 2007-08-16 11:42:28 -0400 |
commit | 3ad40d647d5e7c320385649e5eb422a5e89e035d (patch) | |
tree | 496025ef0d9427967f56d2523cfc2b2097531ec4 /security | |
parent | 28e8351ac22de25034e048c680014ad824323c65 (diff) |
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>
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/ss/services.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
2127 | *rule = NULL; | 2127 | *rule = NULL; |
2128 | 2128 | ||
2129 | if (!ss_initialized) | 2129 | if (!ss_initialized) |
2130 | return -ENOTSUPP; | 2130 | return -EOPNOTSUPP; |
2131 | 2131 | ||
2132 | switch (field) { | 2132 | switch (field) { |
2133 | case AUDIT_SUBJ_USER: | 2133 | case AUDIT_SUBJ_USER: |