From 90090cbc1baab14ed91aed38fec5445d8a996c92 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Sun, 6 Jul 2014 12:23:55 +0200 Subject: [PATCH] check_dhcp: Set proper capabilities --- debian/monitoring-plugins-basic.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/monitoring-plugins-basic.postinst b/debian/monitoring-plugins-basic.postinst index 2a68e0e..1a143a9 100644 --- a/debian/monitoring-plugins-basic.postinst +++ b/debian/monitoring-plugins-basic.postinst @@ -13,7 +13,7 @@ if [ "$1" = "configure" ]; then # which allows us to make our binaries working without the # setuid bit if command -v setcap > /dev/null; then - if setcap cap_net_raw+ep ${plugindir}/check_icmp cap_net_raw+ep ${plugindir}/check_dhcp; then + if setcap "cap_net_raw+ep" ${plugindir}/check_icmp "cap_net_bind_service=+ep cap_net_raw=+ep" ${plugindir}/check_dhcp; then echo "Setcap for check_icmp and check_dhcp worked!" else echo "Setcap for check_icmp and check_dhcp failed." >&2