Bug 1849238 - systemd-nspawn fails to mount /sys/fs/selinux in nspawn container
Summary: systemd-nspawn fails to mount /sys/fs/selinux in nspawn container
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 32
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-19 22:52 UTC by Anthony Messina
Modified: 2020-07-30 18:56 UTC (History)
6 users (show)

Fixed In Version: systemd-245.7-1.fc32
Clone Of:
Environment:
Last Closed: 2020-07-30 18:56:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github systemd systemd issues 16032 0 None closed systemd-nspawn fails to mount /sys/fs/selinux in the container after dcff2fa 2020-07-24 07:10:41 UTC

Description Anthony Messina 2020-06-19 22:52:04 UTC
This occurs after the fix for #1827467 was backported to systemd-245.6-1.fc32.x86_64.

Reported upstream: https://github.com/systemd/systemd/issues/16032

Please backport to F32: https://github.com/systemd/systemd/pull/16194

systemd 245 (v245.6-1.fc32)
+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified

systemd-nspawn[312147]: Bind-mounting /sys/fs/selinux on /var/lib/machines/fedora/sys/fs/selinux (MS_BIND "")...
systemd-nspawn[312147]: Failed to mount /sys/fs/selinux (type n/a) on /var/lib/machines/fedora/sys/fs/selinux (MS_BIND ""): No such file or directory
systemd-nspawn[312147]: Remounting /var/lib/machines/fedora/sys/fs/selinux (MS_RDONLY|MS_NOSUID|MS_NODEV|MS_NOEXEC|MS_REMOUNT|MS_BIND "")...
systemd-nspawn[312147]: Failed to mount n/a (type n/a) on /var/lib/machines/fedora/sys/fs/selinux (MS_RDONLY|MS_NOSUID|MS_NODEV|MS_NOEXEC|MS_REMOUNT|MS_BIND ""): No such file or directory

Comment 1 Anthony Messina 2020-06-27 16:34:09 UTC
Please backport upstream fix https://github.com/systemd/systemd/commit/6fe01ced0e081a9a1d9d484b4bd87a9ae567ae19 to next systemd-stable Fedora release.

Comment 2 Fedora Update System 2020-07-27 09:52:12 UTC
FEDORA-2020-2faf839786 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-2faf839786

Comment 3 Fedora Update System 2020-07-28 15:19:32 UTC
FEDORA-2020-2faf839786 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-2faf839786`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-2faf839786

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2020-07-30 18:56:24 UTC
FEDORA-2020-2faf839786 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.