[RFC PATCH v2 06/41] netlink: keep classic sender ids in skb->cb

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Oct 22 03:17:29 UTC 2026


> netlink_skb_parms has to fit into skb->cb, and netlink skbs are cloned
> together with it for broadcasts, so there is neither room for kuid_t
> and kgid_t holding UUIDs nor a single owner for an allocation.
> 
> Store the sender ids as classic kernel ids: a UUID or GUID becomes -1,
> which reaches the receiver of SCM_CREDENTIALS as the overflow id. The
> kernel's own permission checks on netlink messages use the socket's
> file credentials, not these.
> 
> Assisted-by: Claude:claude-opus-5-5
> 
> Signed-off-by: Jan Koester <jan.koester at tuxist.de>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1792552161.git.jan.koester@tuxist.de?part=6




More information about the Linux-security-module-archive mailing list