mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
keepalived: add script security param to fix warning
Openwrt is a single user system. So keepalived is runnig as root. If we add the config options `script_user root` and `enabled_script_security' the following warnings are gone. > local1.info Keepalived_vrrp[5382]: SECURITY VIOLATION - scripts are being executed but script_security not enabled. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
committed by
Florian Eckert
parent
cc9e4d3b82
commit
1b1ba71063
@@ -98,6 +98,9 @@ print_notify() {
|
|||||||
globals() {
|
globals() {
|
||||||
local notification_email
|
local notification_email
|
||||||
|
|
||||||
|
printf '%bscript_user root\n' "${INDENT_1}" >> "$KEEPALIVED_CONF"
|
||||||
|
printf '%benabled_script_security\n' "${INDENT_1}" >> "$KEEPALIVED_CONF"
|
||||||
|
|
||||||
config_get notification_email "$1" notification_email
|
config_get notification_email "$1" notification_email
|
||||||
print_list_indent notification_email
|
print_list_indent notification_email
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user