[PATCH net] net/x25: inherit the listening socket's security label on accept
patchwork-bot+netdevbpf at kernel.org
patchwork-bot+netdevbpf at kernel.org
Sun Nov 29 15:10:04 UTC 2026
Hello:
This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb at google.com>:
On Mon, 23 Nov 2026 00:31:20 +0000 you wrote:
> From: Suyuan Wang <stevewong at hust.edu.cn>
>
> x25_make_new() creates the socket that accept() returns by copying
> fields from the listening socket, but it never clones the listening
> socket's LSM security state -- there is no security_sk_clone(osk, sk).
> The accepted socket therefore keeps the security state that was newly
> allocated for it in x25_alloc_socket(), instead of inheriting the
> listening socket's security state.
>
> [...]
Here is the summary with links:
- [net] net/x25: inherit the listening socket's security label on accept
https://git.kernel.org/netdev/net/c/c972b41fe1a5
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the Linux-security-module-archive
mailing list