[PATCH] auditctl: allow reset-lost to be available when backlog_wait_time isn't

Richard Guy Briggs rgb at redhat.com
Thu Feb 9 21:37:36 UTC 2017


When HAVE_DECL_AUDIT_VERSION_BACKLOG_WAIT_TIME is not available the
--reset-lost command line option is not available despite it being advertised
in the help text.

Enable it if FEATURE_BITMAP features are available.

This is to support:
	https://github.com/linux-audit/audit-kernel/issues/3
	https://bugzilla.redhat.com/show_bug.cgi?id=1249813

Signed-off-by: Richard Guy Briggs <rgb at redhat.com>
---
 trunk/src/auditctl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/trunk/src/auditctl.c b/trunk/src/auditctl.c
index 81000ee..dfcfae6 100644
--- a/trunk/src/auditctl.c
+++ b/trunk/src/auditctl.c
@@ -514,6 +514,8 @@ struct option long_opts[] =
 #endif
 #if HAVE_DECL_AUDIT_VERSION_BACKLOG_WAIT_TIME
   {"backlog_wait_time", 1, NULL, 2},
+#endif
+#if defined(HAVE_STRUCT_AUDIT_STATUS_FEATURE_BITMAP)
   {"reset-lost", 0, NULL, 3},
 #endif
   {NULL, 0, NULL, 0}
-- 
1.7.1




More information about the Linux-audit mailing list