summaryrefslogtreecommitdiff
path: root/src/core/audit-fd.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-10-02 17:56:54 -0400
committerLennart Poettering <lennart@poettering.net>2012-10-02 17:56:54 -0400
commitffc227c9568eb0a12dc750761d1e5d68ea125aad (patch)
tree09b2020ac0b6baee2902ad4891d6cbb292f31216 /src/core/audit-fd.c
parentc1165f822cd9f8c3467b5f825ce933ab8374b361 (diff)
selinux: remove anything PID1-specific from selinux-access.[ch] so that we can reuse it in logind
Diffstat (limited to 'src/core/audit-fd.c')
-rw-r--r--src/core/audit-fd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/audit-fd.c b/src/core/audit-fd.c
index 0a8626fbc2..5955bd846e 100644
--- a/src/core/audit-fd.c
+++ b/src/core/audit-fd.c
@@ -19,16 +19,18 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include <stdbool.h>
-#include <errno.h>
+#include <errno.h>
#include "audit-fd.h"
-#include "log.h"
#ifdef HAVE_AUDIT
+#include <stdbool.h>
#include <libaudit.h>
+#include "log.h"
+#include "util.h"
+
static bool initialized = false;
static int audit_fd;