Ervin Hegedus
31507404e6
Merge pull request #3392 from amezin/macaddr-resource-leak
...
Fix memory/socket leak in `UniqueId::ethernetMacAddress()`
2025-06-07 13:23:46 +02:00
Ervin Hegedus
f64ea2a708
Merge pull request #3390 from arvedarved/buildsystem-fixes
...
Buildsystem fixes
2025-06-07 09:06:04 +02:00
Ervin Hegedus
1362479d34
Merge pull request #3393 from JakubOnderka/json-log-hostname
...
Add hostname to JSON log
2025-05-28 22:55:57 +02:00
Jakub Onderka
8d3b2cacc4
Add hostname to JSON log
2025-05-28 16:24:09 +02:00
Aleksandr Mezin
a17193f7af
Fix memory/socket leak in UniqueId::ethernetMacAddress()
...
Don't jump over `close()`/`free()`
2025-05-27 12:42:36 +03:00
Tilman Keskinöz
de624f9460
Attempt to fix bogus change.
...
Reported by: CI via Ervin Hegedus
2025-05-23 10:28:38 +02:00
Tilman Keskinöz
7660125da6
buildfix for srcdir != builddir
...
automake doesn't support wildcards.
See https://www.gnu.org/software/automake/manual/html_node/Wildcards.html
for details.
Use the GNU make $(wildcard ) extension.
Note: this breaks with non-GNU make
2025-05-22 18:59:56 +02:00
Tilman Keskinöz
0caf30679f
buildfix
...
If libxml2 is in a non-default directory, it needs to be added
to LDFLAGS
2025-05-22 18:59:55 +02:00
Tilman Keskinöz
0bcabf3208
buildfix for srcdir != builddir
2025-05-22 18:59:51 +02:00
Ervin Hegedus
aab47091b1
Merge pull request #3364 from JakubOnderka/json-logging
...
Simplify code for JSON audit log
2025-05-11 10:54:47 +02:00
Ervin Hegedus
990d99b1fb
Merge pull request #3365 from JakubOnderka/disable-expect
...
Disable Expect when sending audit logs to remote HTTP server
2025-05-11 10:50:10 +02:00
Ervin Hegedus
220caa5abc
Merge pull request #3363 from airween/v3/xmlargsfeat
...
feat: improved XMLArgs processing
2025-05-04 19:46:18 +02:00
Ervin Hegedus
a3876e3c99
Avoid unvanted content parse (whitespaces between tags)
2025-05-02 22:34:03 +02:00
Ervin Hegedus
d228ea6607
Update comment
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-05-01 22:28:27 +02:00
Ervin Hegedus
89442ede16
Change directives in tests; add multibyte test case
2025-04-28 22:35:22 +02:00
Ervin Hegedus
e8dc60ee06
Change node value's parsing to concatenate instead of copy it every time
2025-04-28 22:34:26 +02:00
Ervin Hegedus
bf707de08f
Change directive format to strict camel case
2025-04-28 21:58:18 +02:00
Ervin Hegedus
0b62b7eb85
Align debug messages to fix regression tests
2025-04-27 21:09:49 +02:00
Ervin Hegedus
91a45e79bd
Update error message
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-04-27 20:28:30 +02:00
Ervin Hegedus
2135c8934e
Update comment
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-04-27 20:28:07 +02:00
Ervin Hegedus
8947346cd4
Update comment
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-04-27 20:27:47 +02:00
Ervin Hegedus
67429307cc
Update comment
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-04-27 20:27:26 +02:00
Ervin Hegedus
0c7ea21a26
Update comment
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-04-27 20:27:04 +02:00
Ervin Hegedus
72de7e8400
Update comment
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-04-27 20:26:37 +02:00
Ervin Hegedus
0bf60208af
Add explanation
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-04-27 20:26:09 +02:00
Ervin Hegedus
2000f4c048
Update comment
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-04-27 20:25:20 +02:00
Ervin Hegedus
159f6120aa
Update comment
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-04-27 20:24:47 +02:00
Ervin Hegedus
bbe7eda693
Update explanation
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-04-27 20:23:02 +02:00
Ervin Hegedus
0fcd257fc4
Update comment
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-04-27 20:22:14 +02:00
Ervin Hegedus
fedc70983c
Update comment
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-04-27 20:21:45 +02:00
Ervin Hegedus
5b1c6fbf68
Update comment
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-04-27 20:21:24 +02:00
Ervin Hegedus
eedfed873e
Update error message
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-04-27 20:21:03 +02:00
Ervin Hegedus
f0aa0700fe
Update comment
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-04-27 20:20:49 +02:00
Ervin Hegedus
90be54e25e
Update error message
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-04-27 20:20:22 +02:00
Ervin Hegedus
3dc9fe990c
Update comment
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-04-27 20:19:11 +02:00
Ervin Hegedus
e3678764e5
Update comment
...
Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
2025-04-27 20:18:47 +02:00
Ervin Hegedus
22fee1296d
Change owner in legal text
2025-04-26 20:54:36 +02:00
Jakub Onderka
b82d600049
Disable Expect when sending audit logs to remote HTTP server
...
This will speed-up sending logs to remote server
2025-04-23 16:19:30 +02:00
Jakub Onderka
797f7dc4b2
Change http_version field in JSON audit log to string
...
Sometimes m_httpVersion variable can be empty and then invalid JSON is generated
2025-04-23 10:59:10 +02:00
Jakub Onderka
6408bf9237
Test for JSON audit log
2025-04-22 21:09:42 +02:00
Jakub Onderka
37c0de363e
Simplify code for JSON audit log
2025-04-22 19:41:08 +02:00
Ervin Hegedus
029684c294
Add nullptr check conditions
2025-04-20 21:35:54 +02:00
Ervin Hegedus
3e95614699
Add nullptr check conditions
2025-04-20 21:10:43 +02:00
Ervin Hegedus
b42602f400
Fix more cppcheck warning
2025-04-20 19:31:20 +02:00
Ervin Hegedus
8ae8374be5
Fix cppcheck errors
2025-04-20 19:01:45 +02:00
Ervin Hegedus
f62de58632
Added new cc and h files
2025-04-20 18:29:59 +02:00
Ervin Hegedus
9e41a53760
Finish XMLArgs processing in v3
2025-04-20 18:21:28 +02:00
Zurab Kvachadze
9e230d4a81
build/*.m4: Remove Bashisms/POSIX-ify the M4 helper macros
...
This commit makes it possible to build ModSecurity on systems where
/bin/sh is a POSIX-compliant shell that is not Bash. Debian, Alpine
Linux, and Gentoo Linux with the system shell set to not Bash, are
examples of such systems.
Previously, the helper macros contained two types of Bashisms:
* The '==' comparison operator. Very easy to change, as the proper
POSIX-compliant form is '='. For example:
if test "${var}" == "myvalue" -> if test "${var}" = "myvalue"
* The '-a' (and) operator in the 'test' builtin. The '-a' and '-o'
operators were removed in POSIX 2024 (Issue 8). The correct form
is to use the '&&' and '||' operators respectively. For instance:
if test -d "${var}" -a -r "${var}/file" ->
if test -d "${var}" && test -r "${var}/file"
Bug: https://bugs.gentoo.org/887135
Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
2025-04-15 19:24:58 +02:00
Ervin Hegedus
01a0615887
Merge pull request #3354 from cjihrig/patch-1
...
doc: update testing section of README
2025-03-23 20:31:29 +01:00
Colin Ihrig
80019da75e
doc: update testing section of README
...
The regression_tests and unit_tests scripts appear to
be named with underscores instead of hyphens. This
commit updates the README to reflect this.
2025-03-23 12:59:02 -04:00