AUDIT: Add message types to audit records
[linux-3.10.git] / security / selinux / hooks.c
index aae1e794fe48326f696b766a80a13898c4e43a1b..db845cbd584138a25e569f78c7c11c4d587dafdc 100644 (file)
@@ -3419,7 +3419,7 @@ static int selinux_nlmsg_perm(struct sock *sk, struct sk_buff *skb)
        err = selinux_nlmsg_lookup(isec->sclass, nlh->nlmsg_type, &perm);
        if (err) {
                if (err == -EINVAL) {
-                       audit_log(current->audit_context,
+                       audit_log(current->audit_context, AUDIT_SELINUX_ERR,
                                  "SELinux:  unrecognized netlink message"
                                  " type=%hu for sclass=%hu\n",
                                  nlh->nlmsg_type, isec->sclass);