auditctl: allow reset-lost to be available when backlog_wait_time isn't
PATCH 1/1 auditctl: allow reset-lost to be available when backlog_wait_time isn't
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 <[email protected]>
--- trunk/src/auditctl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
trunk/src/auditctl.c +2 -0
@@ -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}
Signature · 1 line
1.7.1