Thread (24 messages) 24 messages, 6 authors, 2022-01-24

Re: [PATCH v2 6/7] audit: Use task_is_in_init_pid_ns()

From: Leo Yan <hidden>
Date: 2021-12-16 01:09:45
Also in: lkml, netdev

On Wed, Dec 15, 2021 at 02:09:12PM -0500, Richard Guy Briggs wrote:
On 2021-12-14 17:35, Paul Moore wrote:
quoted
On Wed, Dec 8, 2021 at 3:33 AM Leo Yan [off-list ref] wrote:
quoted
Replace open code with task_is_in_init_pid_ns() for checking root PID
namespace.

Signed-off-by: Leo Yan <redacted>
---
 kernel/audit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
I'm not sure how necessary this is, but it looks correct to me.
I had the same thought.  I looks correct to me.  I could see the value
if it permitted init_pid_ns to not be global.
Just for a background info, we need to check root PID namespace in some
drivers [1], to avoid introducing more open codes, we decided to refactor
with helper task_is_in_init_pid_ns().

[1] https://lore.kernel.org/lkml/20211213121323.1887180-1-leo.yan@linaro.org/ (local)
quoted
Acked-by: Paul Moore <paul@paul-moore.com>
Reviewed-by: Richard Guy Briggs <redacted>
Thanks for review, Paul and Richard.

Leo

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help