Re: [PATCH V2] ipc: add set_ownership() and permissions() callbacks for posix mqueue sysctl

From: Davidlohr Bueso
Date: Mon Sep 13 2021 - 15:42:19 EST


On 2021-09-13 07:40, Christian Brauner wrote:
On Fri, Aug 27, 2021 at 03:12:06AM -0700, CGEL wrote:
From: Ran Xiaokai <ran.xiaokai@xxxxxxxxxx>

When a non-root user process creates a user namespace and ipc namespace
with command "unshare -Ur -i", and map the root user inside
the user namesapce to the global owner of user namespace.
The newly created user namespace OWNS the ipc namespace,
So the root user inside the user namespace should have full access
rights to the ipc namespace resources and should be writable to
the ipc mqueue sysctls.

v2:
- update commit msg.
- fix the coding style issue.
Signed-off-by: Ran Xiaokai <ran.xiaokai@xxxxxxxxxx>
---

David,

are you happy with this too? If so I'd pick this up.

LGTM:

Acked-by: Davidlohr Bueso <dbueso@xxxxxxx>