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

From: Christian Brauner
Date: Mon Oct 04 2021 - 06:53:20 EST


On Thu, Sep 16, 2021 at 01:49:31AM +0000, CGEL wrote:
> esOn Mon, Sep 13, 2021 at 04:40:47PM +0200, 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.
> >
>
> Hi Christian,
>
> Is there a xx-next branch for this kind patch?
> We will try to fixes other issues like this, so we could tag the follow-up
> patches with the branch name.

Hm, sorry that message slipped through the pre-mid-and post-conference
cracks. I'll added the patches now for testing. See:

https://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git/log/?h=kernel.fixes

Christian