diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2026-06-05 18:10:33 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-06-05 18:10:34 -0700 |
| commit | 50d578d639b8de2d23b8052138b92a1b9c33dcfb (patch) | |
| tree | bbf1a023974baf2eb96140b202903b6a8d781e21 /include/linux/timerqueue.h | |
| parent | 9410fb4da2d42a75c0fdbc04c4e74f3a2c42793f (diff) | |
| parent | 78c1930198fc63f2d4761848cbe148c5b2958b01 (diff) | |
Merge branch 'net-devmem-allow-bind-rx-from-non-init-user-namespaces'
Bobby Eshleman says:
====================
net: devmem: allow bind-rx from non-init user namespaces
NETDEV_CMD_BIND_RX is GENL_ADMIN_PERM, which checks CAP_NET_ADMIN
against init_user_ns. With netkit and netns support for devmem, it is
now useful to let workloads holding CAP_NET_ADMIN only in their own
user_ns issue bind-rx for a netns owned by that user_ns.
The first patch switches the flag to GENL_UNS_ADMIN_PERM so the check
uses the target netns's owning user_ns. Init remains permitted.
The second patch just adds test cases. They are identical to
nk_devmem.py tests, but using a non-init userns.
====================
Link: https://patch.msgid.link/20260602-nl-prov-v2-0-ad721142c641@meta.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
