Skip to contentSkip to conversation

128 bit uid/gid (UUID) possible?

DISCUSSION David Mulder 2 participants 3 messages Apr 23, 2024 – Apr 25, 2024 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I'm messaging linux-cifs about this, since it's a relevant topic for the Samba team (and I'm unsure of the appropriate ml for such a discussion).

What is the possibility of increasing the uid/gid size in the kernel from 32bits to 128bits? If possible, how large might such a project be? I imagine it could be quite disruptive, but I'm not sure of all the implications. My question relates to providing authentication capabilities for integrating with oauth2 applications, such as Azure, where the user and group object ids are UUIDs. In SSSD and Samba, we're currently in discussions about what the id mappings would look like, but I wonder if we could take a different approach and make the kernel compatible with larger ids instead?

Signature · 8 lines
David Mulder
Labs Software Engineer, Samba
SUSE
1221 S Valley Grove Way, Suite 500
Pleasant Grove, UT 84062
(P)+1 385.208.2989
[email protected]
http://www.suse.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 2 lines · David Mulder

What is the possibility of increasing the uid/gid size in the kernel from 32bits to 128bits?

Nope.

We don't have user-space interfaces for it (st_uid is 32-bit), and the pain is not worth any theoretical gain.

Linus

#3 lore raw
Quoted 8 lines · Linus Torvalds
Quoted 1 line · David Mulder

What is the possibility of increasing the uid/gid size in the kernel from 32bits to 128bits?

Nope.

We don't have user-space interfaces for it (st_uid is 32-bit), and the pain is not worth any theoretical gain.

Linus

Ok, thanks. I'll move forward with id mapping.

Signature · 8 lines
David Mulder
Labs Software Engineer, Samba
SUSE
1221 S Valley Grove Way, Suite 500
Pleasant Grove, UT 84062
(P)+1 385.208.2989
[email protected]
http://www.suse.com