]> git.sur5r.net Git - i3/i3status/commitdiff
debian: add postinst file which issues setcap
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 6 Apr 2010 12:44:53 +0000 (14:44 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 6 Apr 2010 12:44:53 +0000 (14:44 +0200)
debian/i3status.postinst [new file with mode: 0644]

diff --git a/debian/i3status.postinst b/debian/i3status.postinst
new file mode 100644 (file)
index 0000000..bf67a48
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Allow users to get the speed of ethernet interfaces. This is not a security
+# issue as i3status only queries the speed, it does not change any
+# configuration.
+setcap cap_net_admin=ep /usr/bin/i3status || true