From e3481a9846ef01bb27c169b71eafeee704e10c68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sat, 29 Oct 2022 19:21:12 +0200 Subject: 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. --- Process.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Process.h') 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; -- cgit v1.2.3