From c1165f822cd9f8c3467b5f825ce933ab8374b361 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 2 Oct 2012 17:40:09 -0400 Subject: 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. --- src/shared/audit.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/shared/audit.h') diff --git a/src/shared/audit.h b/src/shared/audit.h index f2740bc42c..490a0b0320 100644 --- a/src/shared/audit.h +++ b/src/shared/audit.h @@ -22,8 +22,11 @@ along with systemd; If not, see . ***/ +#include + #include "capability.h" int audit_session_from_pid(pid_t pid, uint32_t *id); int audit_loginuid_from_pid(pid_t pid, uid_t *uid); + #endif -- cgit v1.2.3-54-g00ecf