[RFC PATCH v2 02/41] uapi: add <linux/uidgid_r.h> for 128 bit capable user and group ids
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Thu Oct 22 03:17:24 UTC 2026
> User and group ids are 32 bit numbers. Identities that come from
> elsewhere -- UUIDs handed out by a directory service, or the GUIDs of a
> Windows domain -- have to be squeezed into that range through mapping
> tables kept in userspace, and the kernel never sees who a process really
> is.
>
> Add a tagged id for a new family of system calls (named after the
> classic ones with an _r suffix): a classic 32 bit id, an RFC 9562
> version 4 UUID, or a Microsoft GUID in the byte order Windows stores it
> in. Type 0 is "no id", so a zero-initialized id is never root, and lets
> the set*id_r() calls express "unchanged" without a magic number.
>
> The struct has no 64 bit members and the same layout on all ABIs, so
> none of the new calls needs a compat entry point.
>
> 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=2
More information about the Linux-security-module-archive
mailing list