chiark / gitweb /
audit: turn the audit fd into a static variable
authorLennart Poettering <lennart@poettering.net>
Tue, 2 Oct 2012 21:40:09 +0000 (17:40 -0400)
committerLennart Poettering <lennart@poettering.net>
Tue, 2 Oct 2012 21:40:09 +0000 (17:40 -0400)
commitc1165f822cd9f8c3467b5f825ce933ab8374b361
treeb986e9e6ead9693bdd4785f52ea7e6503bbf92bc
parentcad45ba11ec3572296361f53f5852ffb97a97fa3
audit: turn the audit fd into a static variable

As audit is pretty much just a special kind of logging we should treat
it similar, and manage the audit fd in a static variable.

This simplifies the audit fd sharing with the SELinux access checking
code quite a bit.
Makefile.am
src/core/audit-fd.c [new file with mode: 0644]
src/core/audit-fd.h [new file with mode: 0644]
src/core/manager.c
src/core/manager.h
src/core/selinux-access.c
src/shared/audit.h