From a52f6d43542e66b0426e02b6af3589185c29335b Mon Sep 17 00:00:00 2001 From: valdaarhun Date: Sun, 7 Aug 2022 00:07:02 +0530 Subject: Implement LinuxProcessList_checkPidNamespace Add actionToggle and fix LinuxProcessList_checkPidNamespace Read cgroup file irrespective of flags Improve logic to check if running in container Add isContainerOrVMSlice() Also change "(Process *)lp" to "proc" Remove check for root slice Remove Process_isRunningInContainer Co-authored-by: BenBE --- Process.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Process.h') diff --git a/Process.h b/Process.h index d7127ff0..fa047ace 100644 --- a/Process.h +++ b/Process.h @@ -134,6 +134,9 @@ typedef struct Process_ { /* This is a userland thread / LWP */ bool isUserlandThread; + /* This process is running inside a container */ + bool isRunningInContainer; + /* Controlling terminal identifier of the process */ unsigned long int tty_nr; -- cgit v1.2.3