[AUDIT] create context if auditing was ever enabled
authorEric Paris <eparis@redhat.com>
Tue, 8 Jan 2008 22:38:31 +0000 (17:38 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 1 Feb 2008 19:24:45 +0000 (14:24 -0500)
commitb593d384efcff7bdf6beb1bc1bc69927977aee26
tree9055ef0decc84dcbf0da67135535f0746e602e8e
parent50397bd1e471391d27f64efad9271459c913de87
[AUDIT] create context if auditing was ever enabled

Disabling audit at runtime by auditctl doesn't mean that we can
stop allocating contexts for new processes; we don't want to miss them
when that sucker is reenabled.

(based on work from Al Viro in the RHEL kernel series)

Signed-off-by: Eric Paris <eparis@redhat.com>
kernel/audit.c
kernel/auditsc.c