diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-11-03 20:58:24 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-11-03 21:51:28 +0100 |
commit | 875c2e220e2611165e09051c4747971811f1de58 (patch) | |
tree | 495219c8dce12b59ea2ad0d1bc72f3e4bea6db4d /src/shared/missing.h | |
parent | 8457f8d6ac7adc6c6ef31378e6e7761cce522141 (diff) |
journald: if available pull audit messages from the kernel into journal logs
Diffstat (limited to 'src/shared/missing.h')
-rw-r--r-- | src/shared/missing.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/shared/missing.h b/src/shared/missing.h index 0d7c55952e..cc81c98829 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.h @@ -33,6 +33,7 @@ #include <linux/input.h> #include <linux/if_link.h> #include <linux/loop.h> +#include <linux/audit.h> #ifdef HAVE_AUDIT #include <libaudit.h> @@ -557,3 +558,11 @@ static inline int setns(int fd, int nstype) { #ifndef LOOPBACK_IFINDEX #define LOOPBACK_IFINDEX 1 #endif + +#ifndef MAX_AUDIT_MESSAGE_LENGTH +#define MAX_AUDIT_MESSAGE_LENGTH 8970 +#endif + +#ifndef AUDIT_NLGRP_MAX +#define AUDIT_NLGRP_READLOG 1 +#endif |