summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcessList.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-12-04 19:57:47 +0100
committerBenBE <BenBE@geshi.org>2022-03-06 19:56:25 +0100
commit3ba695293c981af034d243605a30dac6cb55f880 (patch)
tree5c09f11bfbe34680f52b86cc00f2225bd45615b9 /linux/LinuxProcessList.c
parent6133cac721f355aec0d6b5581fef90db34305f29 (diff)
Linux: dynamically adjust the SECATTR column width
SELinux contexts can be quite long; adjust the column width dynamically at each cycle to the longest value. Also with the recent addition of multiple screens, over-long columns can be moved into their own screen.
Diffstat (limited to 'linux/LinuxProcessList.c')
-rw-r--r--linux/LinuxProcessList.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c
index 492887d8..9be97681 100644
--- a/linux/LinuxProcessList.c
+++ b/linux/LinuxProcessList.c
@@ -1029,6 +1029,9 @@ static void LinuxProcessList_readSecattrData(LinuxProcess* process, openat_arg_t
if (newline) {
*newline = '\0';
}
+
+ Process_updateFieldWidth(SECATTR, strlen(buffer));
+
if (process->secattr && String_eq(process->secattr, buffer)) {
return;
}

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