[Pkg-nagios-changes] [pkg-monitoring-plugins] 43/51: check_dhcp: Set proper capabilities
Jan Wagner
waja at moszumanska.debian.org
Mon Jul 7 14:36:25 UTC 2014
This is an automated email from the git hooks/post-receive script.
waja pushed a commit to branch master
in repository pkg-monitoring-plugins.
commit 90090cbc1baab14ed91aed38fec5445d8a996c92
Author: Jan Wagner <waja at cyconet.org>
Date: Sun Jul 6 12:23:55 2014 +0200
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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-monitoring-plugins.git
More information about the Pkg-nagios-changes
mailing list