On 08/12/2021 08:33, Leo Yan wrote:
This patch replaces open code with task_is_in_init_pid_ns() to check if
a task is in root PID namespace.
Signed-off-by: Leo Yan
---
Reviewed-by: Suzuki K Poulose
--
Linux-audit mailing list
Linux-audit@redhat.com
https://listman.redhat.com/mailman
, task_is_in_init_pid_ns(), it
returns true if a passed task is in the root PID namespace, otherwise
returns false. So it will be used to replace open codes.
Suggested-by: Suzuki K Poulose
Signed-off-by: Leo Yan
---
include/linux/pid_namespace.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include
On 08/12/2021 08:33, Leo Yan wrote:
This patch replaces open code with task_is_in_init_pid_ns() to check if
a task is in root PID namespace.
Signed-off-by: Leo Yan
---
Reviewed-by: Suzuki K Poulose
--
Linux-audit mailing list
Linux-audit@redhat.com
https://listman.redhat.com/mailman