[neon/kde/ksysguard/Neon/unstable] debian: different setcap call here

Jonathan Riddell null at kde.org
Thu Oct 15 12:57:20 BST 2020


Git commit dda32b4febc5ecfb21edf1ace1bcd49686b816c0 by Jonathan Riddell.
Committed on 15/10/2020 at 11:57.
Pushed by jriddell into branch 'Neon/unstable'.

different setcap call here

M  +1    -1    debian/ksysguard.postinst.in
M  +1    -1    debian/setcap.yaml

https://invent.kde.org/neon/kde/ksysguard/commit/dda32b4febc5ecfb21edf1ace1bcd49686b816c0

diff --git a/debian/ksysguard.postinst.in b/debian/ksysguard.postinst.in
index 06aa2ce..3b9faf7 100644
--- a/debian/ksysguard.postinst.in
+++ b/debian/ksysguard.postinst.in
@@ -5,7 +5,7 @@ set -e
 if [ "$1" = configure ]; then
     # Set the capabilities
     if command -v setcap > /dev/null && \
-       setcap "CAP_SYS_RESOURCE=+ep" \
+       setcap "CAP_NET_RAW=+ep" \
             "/usr/lib/#DEB_HOST_MULTIARCH#/libexec/ksysguard/ksgrd_network_helper"; then
         echo "Sucessfully set capabilities for start_kdeinit"
     else
diff --git a/debian/setcap.yaml b/debian/setcap.yaml
index 5c32746..4ef1805 100644
--- a/debian/setcap.yaml
+++ b/debian/setcap.yaml
@@ -2,4 +2,4 @@
 # 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_SYS_RESOURCE=+ep", "*/usr/lib/*/libexec/ksysguard/ksgrd_network_helper"]
+- ["CAP_NET_RAW=+ep", "*/usr/lib/*/libexec/ksysguard/ksgrd_network_helper"]


More information about the Neon-commits mailing list