[neon/kde/ksystemstats/Neon/release] debian: CAP_PERFMON=+ep

Carlos De Maine null at kde.org
Thu Sep 11 23:07:43 BST 2025


Git commit 80df5a02644bcc69050d0d20289c9677055fb7a3 by Carlos De Maine.
Committed on 11/09/2025 at 22:07.
Pushed by carlosdem into branch 'Neon/release'.

CAP_PERFMON=+ep

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

https://invent.kde.org/neon/kde/ksystemstats/-/commit/80df5a02644bcc69050d0d20289c9677055fb7a3

diff --git a/debian/ksystemstats.postinst.in b/debian/ksystemstats.postinst.in
index 6733bf0..0f2a638 100644
--- a/debian/ksystemstats.postinst.in
+++ b/debian/ksystemstats.postinst.in
@@ -9,7 +9,7 @@ if [ "$1" = configure ]; then
     # arrays).
     path="/usr/lib/#MULTIARCH#/libexec/ksystemstats_intel_helper"
     if command -v setcap > /dev/null; then
-        cap="CAP_SYS_NICE=+ep"
+        cap="CAP_PERFMON=+ep"
         if setcap $cap $path; then
             echo "Setcap worked for $path!"
         else
diff --git a/debian/setcap.yaml b/debian/setcap.yaml
index 9399163..02d3e4a 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_NICE=+ep", "*/usr/lib/*/libexec/ksystemstats_intel_helper"]
\ No newline at end of file
+- ["CAP_PERFMON=+ep", "*/usr/lib/*/libexec/ksystemstats_intel_helper"]
\ No newline at end of file


More information about the Neon-commits mailing list