Thread (2 messages) 2 messages, 2 authors, 24d ago

Re: [PATCH net v2] macsec: require CAP_NET_ADMIN in the device netns for changelink

flat view

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-09-17 00:41:23
Also in: lkml, stable

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski [off-list ref]:

On Fri, 11 Sep 2026 22:33:10 +0100 you wrote:
macsec_changelink() operates on two netns: dev_net(dev) and the netns
of macsec->real_dev. They differ once the macsec device is created in
or moved to a netns other than the one holding the real device. The
rtnl changelink path checks CAP_NET_ADMIN only against dev_net(dev), so
a caller privileged there but not in dev_net(real_dev) can reach
real_dev's driver:

[...]
Here is the summary with links:
  - [net,v2] macsec: require CAP_NET_ADMIN in the device netns for changelink
    https://git.kernel.org/netdev/net-next/c/ed502e485685

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help