Remove ability to use relative paths to a piped audit logger.

This commit is contained in:
b1v1r
2010-02-14 22:31:59 +00:00
parent cb2a82fa28
commit 658966a433
3 changed files with 13 additions and 1 deletions

View File

@@ -1,6 +1,11 @@
14 Feb 2010 - 2.5.13-dev1
-------------------------
* Remove the ability to use a relative path to a piped audit logger
(i.e. mlogc) as Apache does not support it in their piped loggers
and it was breaking Windows and probably other platforms that
use spaces in filesystem paths. Discovered by Tom Donovan.
* Fix memory leak freeing regex. Discovered by Tom Donovan.
* Fix some portability issues on Windows.

View File

@@ -953,7 +953,7 @@ static const char *cmd_audit_log(cmd_parms *cmd, void *_dcfg, const char *p1)
dcfg->auditlog_name = (char *)p1;
if (dcfg->auditlog_name[0] == '|') {
const char *pipe_name = ap_server_root_relative(cmd->pool, dcfg->auditlog_name + 1);
const char *pipe_name = dcfg->auditlog_name + 1;
piped_log *pipe_log;
pipe_log = ap_open_piped_log(cmd->pool, pipe_name);

View File

@@ -673,6 +673,13 @@ SecAuditLogStorageDir logs/audit
configure and use the ModSecurity Log Collector (mlogc) and use the
following format for the audit log:</para>
<note>
<para>Prior to 2.5.13 you may have been able to use a relative path to
a piped logger command, but this was broken on some platforms and the
feature was removed in 2.5.13 to make the platforms more
consitent.</para>
</note>
<para><programlisting format="linespecific">SecAuditLog "|/path/to/mlogc /path/to/mlogc.conf"</programlisting></para>
</section>