[systemd-devel] UID/GID in nspawn container

arnaud gaboury arnaud.gaboury at gmail.com
Fri Dec 16 09:12:31 UTC 2016


Arch host running a nsapwn Fedora 25 container.

On host,
 % systemctl --version
systemd 232
+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP
+GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN
% uname -r
4.8.13-1-hortensia   <<--- custom one

--------------------------------
I upgraded recently Fedora from 24 to 25. Not fully sure if it is the
reason why (maybe a kernel change too) , but now looking at my container I
see this:

$ ls -al $POPPY
total 20K
dr-xr-xr-x 1 vu-poppy-0 vg-poppy-0   198 Dec 16 10:01 ./
drwx------ 3 root       root        4.0K Dec 15 17:08 ../
dr-xr-xr-x 1 vu-poppy-0 vg-poppy-0     0 Feb  3  2016 boot/
drwxrwxr-x 1 vu-poppy-0 vg-poppy-0    62 Aug 26 19:59 db/
drwxr-xr-x 1 vu-poppy-0 vg-poppy-0     8 Apr 27  2015 dev/
drwxr-xr-x 1 vu-poppy-0 vg-poppy-0  4.2K Dec 16 10:01 etc/
drwxr-xr-x 1 vu-poppy-0 vg-poppy-0    86 Feb  3  2016 home/
drwxrwxrwx 1 vu-poppy-0 vg-poppy-0     0 Sep 23 12:39 keybase/
drwxr-xr-x 1 vu-poppy-0 vg-poppy-0     0 Feb  3  2016 media/
................................

When before I had root:root.

Why this change? Is this change expected, or is it due to my issue (see
#4078 [0])? Where can I find any documentation about this new way to show
UID/GID in container? Anything I have to do/change in my setting files?

Thank you for help

[0]https://github.com/systemd/systemd/issues/4078
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20161216/cbe36bf1/attachment-0001.html>


More information about the systemd-devel mailing list