[systemd-bugs] [Bug 76412] New: [systemd-nspawn] out of memory and su system errors
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Mar 20 12:12:27 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=76412
Priority: medium
Bug ID: 76412
Assignee: systemd-bugs at lists.freedesktop.org
Summary: [systemd-nspawn] out of memory and su system errors
QA Contact: systemd-bugs at lists.freedesktop.org
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: ullysses.a.eoff at intel.com
Hardware: x86-64 (AMD64)
Status: NEW
Version: unspecified
Component: general
Product: systemd
Created attachment 96119
--> https://bugs.freedesktop.org/attachment.cgi?id=96119&action=edit
strace for first issue
I updated to systemd 211 (which should have the fix for bug 75733, if I'm not
mistaken) from rawhide on my base Fedora 20 x86_64 OS, then rebooted. I am now
having a few new issues when trying to run commands as a user in a 32-bit
(i686) container on an x86_64 host OS. These issues do not happen if the
container is a 64-bit (x86_64) container.
#### Issue 1 ####
Running systemd-nspawn with -u <user> option to execute a command when <user>
is part of the "wheel" group in the container.
$ uname -r
3.13.6-200.fc20.x86_64
$ su -
$ mkdir /srv/mycontainer-i686
$ mkdir -p /srv/mycontainer-i686/etc/yum/vars
$ echo i386 > /srv/mycontainer-i686/etc/yum/vars/basearch
$ echo i686 > /srv/mycontainer-i686/etc/yum/vars/arch
$ yum -y --releasever=20 --nogpg --installroot=/srv/mycontainer-i686
--disablerepo='*' --enablerepo=fedora install systemd passwd yum fedora-release
vim-minimal sudo
$ systemd-nspawn -D /srv/mycontainer-i686 adduser jail
$ systemd-nspawn -D /srv/mycontainer-i686 passwd -d jail
$ systemd-nspawn -u jail -D /srv/mycontainer-i686 whoami
Spawning container mycontainer-i686 on /srv/mycontainer-i686. Press ^] three
times within 1s to abort execution.
jail
$ systemd-nspawn -D /srv/mycontainer-i686 usermod -a -G wheel jail
$ systemd-nspawn -u jail -D /srv/mycontainer-i686 whoami
Spawning container mycontainer-i686 on /srv/mycontainer-i686. Press ^] three
times within 1s to abort execution.
Out of memory.
Container mycontainer-i686 failed with error code 1.
#### Issue 2 ####
Running systemd-nspawn as root to execute an "su <user> -c <command>" command.
$ uname -r
3.13.6-200.fc20.x86_64
$ su -
$ mkdir /srv/mycontainer-i686
$ mkdir -p /srv/mycontainer-i686/etc/yum/vars
$ echo i386 > /srv/mycontainer-i686/etc/yum/vars/basearch
$ echo i686 > /srv/mycontainer-i686/etc/yum/vars/arch
$ yum -y --releasever=20 --nogpg --installroot=/srv/mycontainer-i686
--disablerepo='*' --enablerepo=fedora install systemd passwd yum fedora-release
vim-minimal sudo
$ systemd-nspawn -D /srv/mycontainer-i686 adduser jail
$ systemd-nspawn -D /srv/mycontainer-i686 passwd -d jail
$ systemd-nspawn -D /srv/mycontainer-i686 su jail -c whoami
Spawning container mycontainer-i686 on /srv/mycontainer-i686. Press ^] three
times within 1s to abort execution.
su: System error
Container mycontainer-i686 failed with error code 1.
I've attached straces for both of the issues if that helps.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140320/856bb6c3/attachment.html>
More information about the systemd-bugs
mailing list