diff options
author | valdaarhun <icegambit91@gmail.com> | 2022-08-07 00:07:02 +0530 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2022-08-29 19:19:35 +0200 |
commit | a52f6d43542e66b0426e02b6af3589185c29335b (patch) | |
tree | 1f6b3b3166b2e0947beb9ad5739be0c26c67aa9d /Process.h | |
parent | d078ba15a234228898f1683a2c22eb90ba446a4d (diff) |
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 <BenBE@geshi.org>
Diffstat (limited to 'Process.h')
-rw-r--r-- | Process.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |