Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2013-03-29 19:29:43 (GMT)
committer Daniel Drake <dsd@laptop.org>2013-03-29 19:29:43 (GMT)
commite1f776788f7cf726b01e0035fe70381b34ce7308 (patch)
treecbc942156116189cc823b1bc415389cbb2787683
parentd55ae1193b5edb391a77a1bb42599e8162c2d947 (diff)
base: set suid root on ping (#12427)
Make this useful network diagnosis tool available to the regular user, and to ds-backup.
-rw-r--r--modules/base/kspost.10.core.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/base/kspost.10.core.inc b/modules/base/kspost.10.core.inc
index 037dcc9..e3b9205 100644
--- a/modules/base/kspost.10.core.inc
+++ b/modules/base/kspost.10.core.inc
@@ -245,3 +245,9 @@ rm -f /etc/xdg/autostart/tracker*.desktop 2>/dev/null
# Disable it, it's not interesting for us
rm -f /var/log/wtmp
ln -s /dev/null /etc/systemd/system/systemd-update-utmp-shutdown.service
+
+# ping requires CAP_NET_RAW and now ships with file capabilities to make
+# this happen. however, we do not support file capabilities in our update
+# system. as this is a useful network diagnosis tool, and used by ds-backup,
+# make it available to non-root users again (#12427)
+chmod u+s /usr/bin/ping