summaryrefslogtreecommitdiff
path: root/net/tipc/net.c
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2017-09-01 09:44:34 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-16 10:33:56 +0100
commitb3495712705844b252ad8f81130a75a7ba1a0a7c (patch)
tree65c265e30d2f46fff50324b8103ea37e53466c84 /net/tipc/net.c
parent1b9baf30673cb261356d0a2e10d0028c267a92f6 (diff)
audit: ensure that 'audit=1' actually enables audit for PID 1
[ Upstream commit 173743dd99a49c956b124a74c8aacb0384739a4c ] Prior to this patch we enabled audit in audit_init(), which is too late for PID 1 as the standard initcalls are run after the PID 1 task is forked. This means that we never allocate an audit_context (see audit_alloc()) for PID 1 and therefore miss a lot of audit events generated by PID 1. This patch enables audit as early as possible to help ensure that when PID 1 is forked it can allocate an audit_context if required. Reviewed-by: Richard Guy Briggs <rgb@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/tipc/net.c')
0 files changed, 0 insertions, 0 deletions