[neon/kde/ksysguard/Neon/unstable] debian: no setcap here now

Jonathan Riddell null at kde.org
Wed Apr 21 18:25:35 BST 2021


Git commit 2502f3da8927797100279b9eac4723f22a5e786f by Jonathan Riddell.
Committed on 21/04/2021 at 17:25.
Pushed by jriddell into branch 'Neon/unstable'.

no setcap here now

D  +0    -19   debian/ksysguard.postinst.in
D  +0    -5    debian/setcap.yaml

https://invent.kde.org/neon/kde/ksysguard/commit/2502f3da8927797100279b9eac4723f22a5e786f

diff --git a/debian/ksysguard.postinst.in b/debian/ksysguard.postinst.in
deleted file mode 100644
index 3b9faf7..0000000
--- a/debian/ksysguard.postinst.in
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-set -e
-
-if [ "$1" = configure ]; then
-    # Set the capabilities
-    if command -v setcap > /dev/null && \
-       setcap "CAP_NET_RAW=+ep" \
-            "/usr/lib/#DEB_HOST_MULTIARCH#/libexec/ksysguard/ksgrd_network_helper"; then
-        echo "Sucessfully set capabilities for start_kdeinit"
-    else
-        echo "Failed to set capabilities for start_kdeinit" >&2
-    fi
-fi
-
-#DEBHELPER#
-
-exit 0
-
diff --git a/debian/setcap.yaml b/debian/setcap.yaml
deleted file mode 100644
index 4ef1805..0000000
--- a/debian/setcap.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
-# Whitelisted arguments to setcap.
-# Being whitelisted means they will pass the build without problems.
-# A whitelisted call needs to have a corresponding setcap/setuid call in
-# postinst so it actually gets applied.
-- ["CAP_NET_RAW=+ep", "*/usr/lib/*/libexec/ksysguard/ksgrd_network_helper"]


More information about the Neon-commits mailing list