diff options
| author | Steve Grubb <sgrubb@redhat.com> | 2005-05-13 13:17:42 -0400 | 
|---|---|---|
| committer | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-05-13 13:17:42 -0400 | 
| commit | c04049939f88b29e235d2da217bce6e8ead44f32 (patch) | |
| tree | 9bf3ab72b9939c529e7c96f8768bc8b7e1d768c9 /security/selinux/hooks.c | |
| parent | 9ea74f0655412d0fbd12bf9adb6c14c8fe707a42 (diff) | |
AUDIT: Add message types to audit records
This patch adds more messages types to the audit subsystem so that audit 
analysis is quicker, intuitive, and more useful.
Signed-off-by: Steve Grubb <sgrubb@redhat.com>
---
I forgot one type in the big patch. I need to add one for user space 
originating SE Linux avc messages. This is used by dbus and nscd.
-Steve
---
Updated to 2.6.12-rc4-mm1.
-dwmw2
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'security/selinux/hooks.c')
| -rw-r--r-- | security/selinux/hooks.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index aae1e794fe48..db845cbd5841 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c  | |||
| @@ -3419,7 +3419,7 @@ static int selinux_nlmsg_perm(struct sock *sk, struct sk_buff *skb) | |||
| 3419 | err = selinux_nlmsg_lookup(isec->sclass, nlh->nlmsg_type, &perm); | 3419 | err = selinux_nlmsg_lookup(isec->sclass, nlh->nlmsg_type, &perm); | 
| 3420 | if (err) { | 3420 | if (err) { | 
| 3421 | if (err == -EINVAL) { | 3421 | if (err == -EINVAL) { | 
| 3422 | audit_log(current->audit_context, | 3422 | audit_log(current->audit_context, AUDIT_SELINUX_ERR, | 
| 3423 | "SELinux: unrecognized netlink message" | 3423 | "SELinux: unrecognized netlink message" | 
| 3424 | " type=%hu for sclass=%hu\n", | 3424 | " type=%hu for sclass=%hu\n", | 
| 3425 | nlh->nlmsg_type, isec->sclass); | 3425 | nlh->nlmsg_type, isec->sclass); | 
