[PATCH v3 2/4] bpf-lsm: Make bpf_lsm_userns_create() sleepable

Christian Brauner brauner at kernel.org
Fri Jul 22 08:18:20 UTC 2022


On Thu, Jul 21, 2022 at 12:28:06PM -0500, Frederick Lawler wrote:
> Users may want to audit calls to security_create_user_ns() and access
> user space memory. Also create_user_ns() runs without
> pagefault_disabled(). Therefore, make bpf_lsm_userns_create() sleepable
> for mandatory access control policies.
> 
> Signed-off-by: Frederick Lawler <fred at cloudflare.com>
> 
> ---

Seems reasonable,
Acked-by: Christian Brauner (Microsoft) <brauner at kernel.org>



More information about the Linux-security-module-archive mailing list