From: Richard Guy Briggs Subject: [PATCH] auditctl: allow reset-lost to be available when backlog_wait_time isn't Date: Thu, 9 Feb 2017 16:37:36 -0500 Message-ID: <1486676256-13157-1-git-send-email-rgb@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com Cc: Richard Guy Briggs List-Id: linux-audit@redhat.com 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 --- 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