AUDIT: Avoid sleeping function in SElinux AVC audit.
authorStephen Smalley <sds@tycho.nsa.gov>
Fri, 20 May 2005 23:15:52 +0000 (00:15 +0100)
committerDavid Woodhouse <dwmw2@shinybook.infradead.org>
Fri, 20 May 2005 23:15:52 +0000 (00:15 +0100)
commit011161051bbc25f7f8b7df059dbd934c534443f0
treef1ca3727e4130cacad86dfdae65e7533fcb67784
parentfb19b4c6aa024837a0071f07baa07dbf49d07151
AUDIT: Avoid sleeping function in SElinux AVC audit.

This patch changes the SELinux AVC to defer logging of paths to the audit
framework upon syscall exit, by saving a reference to the (dentry,vfsmount)
pair in an auxiliary audit item on the current audit context for processing
by audit_log_exit.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
include/linux/audit.h
kernel/auditsc.c
security/selinux/avc.c