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