|
|
|
|
|
by ElectricalUnion
1035 days ago
|
|
> you are forced to map multiple UIDs in the child namespace to the same UID in the parent Is that really a limit or just a thing for convenience? I don't think besides 0 in namespace being the actual user in the actual system as a good convenience, that there is any "need" for pids per root-pid, and even if that happened it would save "root-pids". And I find it unlikely as of now that a system would reach the 16-bit limits of running more that 65000 applications on a single system without hitting some other limit like /proc/sys/kernel/pid_max or /proc/sys/fs/file-max first. |
|
What happens with filesystems though? I would assume the filesystem is using the root user namespace. Which means if you have two different UIDs and they map to the same UID in the root namespace, they get collapsed into one for file ownership/etc. That seems a rather major limitation.
> And I find it unlikely as of now that a system would reach the 16-bit limits of running more that 65000 applications on a single system
With 32-bit identifiers, if you make each level 16-bit, you only have room for two levels. What if you have need for a third?
Also, you have to design a mapping from however many levels you need to the 32-bit flat namespace. A mapping which works well for one use case might turn out to be a problematic limitation in another. With variable-length UIDs there is no mapping to bother with.