ipc: Store ipc sysctls in the ipc namespace
authorAlexey Gladkov <legion@kernel.org>
Mon, 14 Feb 2022 18:18:15 +0000 (19:18 +0100)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 8 Mar 2022 19:39:40 +0000 (13:39 -0600)
commit1f5c135ee509e89e0cc274333a65f73c62cb16e5
tree9a3b82b103e80cf59b387c87da6b75ba75cdfc1f
parentdc55e35f9e810f23dd69cfdc91a3d636023f57a2
ipc: Store ipc sysctls in the ipc namespace

The ipc sysctls are not available for modification inside the user
namespace. Following the mqueue sysctls, we changed the implementation
to be more userns friendly.

So far, the changes do not provide additional access to files. This
will be done in a future patch.

Signed-off-by: Alexey Gladkov <legion@kernel.org>
Link: https://lkml.kernel.org/r/be6f9d014276f4dddd0c3aa05a86052856c1c555.1644862280.git.legion@kernel.org
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
include/linux/ipc_namespace.h
ipc/ipc_sysctl.c
ipc/namespace.c