diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2023-05-05 20:23:15 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2024-04-06 19:42:28 +0200 |
commit | b4d5b5cea98f557a856c89500dc169f511a2b817 (patch) | |
tree | aa57a74027c0e3b9b91dc7d5ecd14bcab04d315b /Process.c | |
parent | eb27a94ba411793aa1a25c331b3e1bb328739583 (diff) |
Linux: gather permitted capabilities via capget(2)
#1211 has shown reading /proc/<pid>/status might have a significant
performance impact. It was started to be read by default to gather the
permitted capabilities of the process.
Gather permitted capabilities via the syscall capget(2) instead.
cap_get_proc(3) is not used to avoid linking with -lcap.
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -736,7 +736,7 @@ void Process_writeField(const Process* this, RichString* str, RowField field) { } break; case USER: - if (this->elevated_priv) + if (this->elevated_priv == TRI_ON) attr = CRT_colors[PROCESS_PRIV]; else if (host->htopUserId != this->st_uid) attr = CRT_colors[PROCESS_SHADOW]; |