aboutsummaryrefslogtreecommitdiff
path: root/security/selinux
diff options
context:
space:
mode:
authorSteve G <linux_4ever@yahoo.com>2007-08-14 12:50:46 -0700
committerJames Morris <jmorris@halo.namei>2007-08-16 11:42:28 -0400
commit3ad40d647d5e7c320385649e5eb422a5e89e035d (patch)
tree496025ef0d9427967f56d2523cfc2b2097531ec4 /security/selinux
parent28e8351ac22de25034e048c680014ad824323c65 (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/selinux')
-rw-r--r--security/selinux/ss/services.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c
index f00161ef99e..6100fc02305 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: