Re: [PATCH v2 2/7] coresight: etm3x: Use task_is_in_init_pid_ns()

2021-12-08 Thread Suzuki K Poulose
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

Re: [PATCH v2 1/7] pid: Introduce helper task_is_in_init_pid_ns()

2021-12-08 Thread Suzuki K Poulose
, 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

Re: [PATCH v2 3/7] coresight: etm4x: Use task_is_in_init_pid_ns()

2021-12-08 Thread Suzuki K Poulose
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