]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
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 f00161ef99ed17450ae395913730ca4154469e2d..6100fc023055c0b62e4d3d4691e0593424d38113 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: