Skip to content

ipc: Remove extra1 field abuse to pass ipc namespace

Alexey Gladkov containers linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ipc: Remove extra1 field abuse to pass ipc namespaceipc/ipc_sysctl.c+8 -181 reply
1/4sysctl: API extension for handling sysctlfs/proc/proc_sysctl.c include/linux/sysctl.h+77 -145 replies
2/4ipc: Use proper ipc namespaceipc/ipc_sysctl.c+1 -46 replies
2/4sysctl: ipc: Do not use dynamic memoryinclude/linux/ipc_namespace.h ipc/ipc_sysctl.c ipc/namespace.c+121 -1375 replies
3/4ipc: Check permissions for checkpoint_restart sysctls at open timeipc/ipc_sysctl.c+29 -250 replies
3/4sysctl: userns: Do not use dynamic memoryinclude/linux/user_namespace.h kernel/ucount.c kernel/user_namespace.c+46 -860 replies
4/4ipc: Remove extra bracesipc/ipc_sysctl.c+12 -130 replies
4/4sysctl: mqueue: Do not use dynamic memoryinclude/linux/ipc_namespace.h ipc/mq_sysctl.c ipc/mqueue.c +1 more+79 -870 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/4] ipc: Remove extra1 field abuse to pass ipc namespace

These patches are made on top of branch:

git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git per-namespace-ipc-sysctls-for-v5.18

After discussion, I took into account Eric Biederman's fixes. With these changes, the hacks of passing namespace through .extra1 are not required.

With the current design of sysctl dynamic memory allocation is necessary.

Yes, Linus, these changes are not the refactoring you were talking about, but I plan to try to do such a refactoring in the my next patchset.

--

Alexey Gladkov (4):
ipc: Remove extra1 field abuse to pass ipc namespace
ipc: Use proper ipc namespace
ipc: Check permissions for checkpoint_restart sysctls at open time
ipc: Remove extra braces

 ipc/ipc_sysctl.c | 108 +++++++++++++++++++++--------------------------
 1 file changed, 49 insertions(+), 59 deletions(-)
Signature · 1 line
2.33.2