]> git.ipfire.org Git - ipfire-2.x.git/commit
ids-functions.pl: Add priviate function _check_rulesdir_permissions()
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 24 Aug 2018 12:55:40 +0000 (14:55 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 24 Aug 2018 12:55:40 +0000 (14:55 +0200)
commit330759d88a4adfbf5fc23cb575607b8b99b1b62b
treec7a2815f2b0200662411039283c8165055bdd4a8
parent68123effb80c3509cb4855c46d3ff378ba7f13a0
ids-functions.pl: Add priviate function _check_rulesdir_permissions()

This function checks if all files located in /etc/suricata/rules are
writable by the effective user and group (nobody:nobody) and if not
calls suricatactl to fix it.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ids-functions.pl