From 3ba695293c981af034d243605a30dac6cb55f880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sat, 4 Dec 2021 19:57:47 +0100 Subject: 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. --- linux/LinuxProcessList.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linux/LinuxProcessList.c') 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; } -- cgit v1.2.3