You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to this page, user name spaces create mapping tables that look like this:
Host UID
UserNS UID
1000
0
1_000_000
1
1_000_001
2
...
...
1_065_535
65536
Note how Host UIDs with the above files would imply that both namespaces owned/started by ermo and lfs users would nessarily share Host UIDs and Host GIDs with the above mapping tables; i.e. UserNS UID 1 in containers would all be owned by Host UID 1_000_000 on the system.
IFF the above is the correct interpretation, THEN it might make sense to update the qol-assist logic to instead adopt the following logic for creating user:starting_host_uid:range triplets:
If we define starting_host_uid = (UID+1) * 100_000, (if we assume that ermo is UID/GID 1000, lfs is UID/GID 1004 and root is UID/GID = 1) then we get the following, automagically generated /etc/subuid and /etc/subgid file contents:
The text was updated successfully, but these errors were encountered:
ermo
changed the title
Create /etc/subuid and /etc/subguid ranges based on uid * 100_000
Create /etc/subuid and /etc/subguid ranges based on (uid+1) * 100_000
Jul 2, 2024
Currently, the existing qol-assist implementation will give all users on a system get the same subuid and subgid ranges:
According to this page, user name spaces create mapping tables that look like this:
Note how Host UIDs with the above files would imply that both namespaces owned/started by ermo and lfs users would nessarily share Host UIDs and Host GIDs with the above mapping tables; i.e. UserNS UID 1 in containers would all be owned by Host UID 1_000_000 on the system.
IFF the above is the correct interpretation, THEN it might make sense to update the qol-assist logic to instead adopt the following logic for creating
user:starting_host_uid:range
triplets:If we define
starting_host_uid = (UID+1) * 100_000
, (if we assume thatermo
is UID/GID 1000,lfs
is UID/GID 1004 androot
is UID/GID = 1) then we get the following, automagically generated/etc/subuid
and/etc/subgid
file contents:The text was updated successfully, but these errors were encountered: