summaryrefslogtreecommitdiff
path: root/src/basic/missing_audit.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-12-06 06:34:04 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-12-06 13:25:24 +0100
commit0e7117d00161a96166e1e2e920c0f358ed19930f (patch)
tree23de6fec001a39d720d15629be93336f5cd7cc12 /src/basic/missing_audit.h
parent851d66fac2cbfe6801703451b3d84426421a895a (diff)
downloadsystemd-0e7117d00161a96166e1e2e920c0f358ed19930f.tar.gz
missing: move audit related definitions to missing_audit.h
Diffstat (limited to 'src/basic/missing_audit.h')
-rw-r--r--src/basic/missing_audit.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/basic/missing_audit.h b/src/basic/missing_audit.h
new file mode 100644
index 0000000000..b00d537be2
--- /dev/null
+++ b/src/basic/missing_audit.h
@@ -0,0 +1,24 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
+#pragma once
+
+#include <linux/audit.h>
+
+#if HAVE_AUDIT
+#include <libaudit.h>
+#endif
+
+#ifndef AUDIT_SERVICE_START
+#define AUDIT_SERVICE_START 1130 /* Service (daemon) start */
+#endif
+
+#ifndef AUDIT_SERVICE_STOP
+#define AUDIT_SERVICE_STOP 1131 /* Service (daemon) stop */
+#endif
+
+#ifndef MAX_AUDIT_MESSAGE_LENGTH
+#define MAX_AUDIT_MESSAGE_LENGTH 8970
+#endif
+
+#ifndef AUDIT_NLGRP_MAX
+#define AUDIT_NLGRP_READLOG 1
+#endif