mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
{dis|en}able-filename-logging: Option to disable logging of filename in audit log [Issue #1065 - Marc Stern]
This commit is contained in:
committed by
Felipe Zimmerle
parent
42c819d1b9
commit
c1c91e24cd
17
configure.ac
17
configure.ac
@@ -427,6 +427,21 @@ AC_ARG_ENABLE(rule-id-validation,
|
||||
unique_id=''
|
||||
])
|
||||
|
||||
# Disable logging of filename
|
||||
AC_ARG_ENABLE(filename-logging,
|
||||
AS_HELP_STRING([--enable-filename-logging],
|
||||
[Enable logging of filename in audit log. This is the default]),
|
||||
[
|
||||
if test "$enableval" != "no"; then
|
||||
log_filename=
|
||||
else
|
||||
log_filename="-DLOG_NO_FILENAME"
|
||||
fi
|
||||
],
|
||||
[
|
||||
log_filename=''
|
||||
])
|
||||
|
||||
# Ignore configure errors
|
||||
AC_ARG_ENABLE(errors,
|
||||
AS_HELP_STRING([--disable-errors],
|
||||
@@ -677,7 +692,7 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
MODSEC_EXTRA_CFLAGS="$pcre_study $pcre_match_limit $pcre_match_limit_recursion $pcre_jit $request_early $htaccess_config $lua_cache $debug_conf $debug_cache $debug_acmp $debug_mem $perf_meas $modsec_api $cpu_type $unique_id"
|
||||
MODSEC_EXTRA_CFLAGS="$pcre_study $pcre_match_limit $pcre_match_limit_recursion $pcre_jit $request_early $htaccess_config $lua_cache $debug_conf $debug_cache $debug_acmp $debug_mem $perf_meas $modsec_api $cpu_type $unique_id $log_filename"
|
||||
|
||||
APXS_WRAPPER=build/apxs-wrapper
|
||||
APXS_EXTRA_CFLAGS=""
|
||||
|
Reference in New Issue
Block a user