]> git.baikalelectronics.ru Git - kernel.git/commit
Audit: add support to match lsm labels on user audit messages
authorMiloslav Trmac <mitr@redhat.com>
Thu, 16 Sep 2010 22:14:11 +0000 (18:14 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 30 Oct 2010 05:41:57 +0000 (01:41 -0400)
commit3b2ada02c55b854cc84c9feecd1e47235d9ff9cb
treecd42581516bc189c2e1d83b15fad984c7001561c
parent9e3ffd681d6bfaf42ffd684f09600a4b3fee6e28
Audit: add support to match lsm labels on user audit messages

Add support for matching by security label (e.g. SELinux context) of
the sender of an user-space audit record.

The audit filter code already allows user space to configure such
filters, but they were ignored during evaluation.  This patch implements
evaluation of these filters.

For example, after application of this patch, PAM authentication logs
caused by cron can be disabled using
auditctl -a user,never -F subj_type=crond_t

Signed-off-by: Miloslav Trmac <mitr@redhat.com>
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/auditfilter.c