summaryrefslogtreecommitdiffstats
path: root/Process.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2022-10-29 19:21:12 +0200
committerBenBE <BenBE@geshi.org>2023-02-05 00:24:13 +0100
commite3481a9846ef01bb27c169b71eafeee704e10c68 (patch)
tree47e5003f85875872813677895b7fa298d14af269 /Process.h
parent8ea144df7494bad0c46d3bf4f16c9a6556c500d2 (diff)
Linux: highlight username if process has elevated privileges
Highlight processes started from binaries with file capabilities set, like kwin_wayland, or retaining Linux capabilities, via the ambient set, after switching from the root user, e.g. rtkit.
Diffstat (limited to 'Process.h')
-rw-r--r--Process.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Process.h b/Process.h
index 0fdc392b..db32ecc1 100644
--- a/Process.h
+++ b/Process.h
@@ -151,6 +151,13 @@ typedef struct Process_ {
/* User name */
const char* user;
+ /* Non root owned process with elevated privileges
+ * Linux:
+ * - from file capabilities
+ * - inherited from the ambient set
+ */
+ bool elevated_priv;
+
/* Process runtime (in hundredth of a second) */
unsigned long long int time;

© 2014-2024 Faster IT GmbH | imprint | privacy policy