Systemd lightweight containers
Systemd lightweight containers
Posted Feb 7, 2013 15:56 UTC (Thu) by nybble41 (subscriber, #55106)In reply to: Systemd lightweight containers by mezcalero
Parent article: Systemd lightweight containers
I wouldn't expect that to be as difficult as you make it sound. The filesystem should see a single UID within its own namespace; if I mount a filesystem and then create a UID namespace mapping UID 0 to UID 1000, then a process with UID 0 inside the namespace and UID 1000 outside should appear to the filesystem as UID 1000. On the other hand, if I created the UID namespace first and then mounted the filesystem inside it, the filesystem should see UID 0, since the filesystem and the process are in the same UID namespace.
