SELinux: correct error code in selinux_audit_rule_init
authorSteve G <linux_4ever@yahoo.com>
Tue, 14 Aug 2007 19:50:46 +0000 (12:50 -0700)
committerJames Morris <jmorris@halo.namei>
Thu, 16 Aug 2007 15:42:28 +0000 (11:42 -0400)
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>
security/selinux/ss/services.c

index f00161e..6100fc0 100644 (file)
@@ -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: