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(a)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