Add interface in libModSecurity for reopening log files #1968
Labels
3.x
Related to ModSecurity version 3.x
new feature
This is a new feature
RIP - libmodsecurity
RIP - Type - Feature
Milestone
This is related with feature request owasp-modsecurity/ModSecurity-nginx#121
As noted at owasp-modsecurity/ModSecurity-nginx#121 (comment), we could leverage a similar approach as described at https://forum.nginx.org/read.php?29,247488,247500#msg-247500 (i.e. use standard nginx API to open some stub-file with ngx_conf_open_file(), add required handler, and use it for detecting USR1 and HUP signals from master process)
But it seems like libModSecurity currently does not have a nice interface to initiate audit/debug log files reopening by connector's request.
There's a PoC on how we could accomplish that on the connector at owasp-modsecurity/ModSecurity-nginx#121 (comment) as a starting point.
The text was updated successfully, but these errors were encountered: