journal is broken in unprivileged LXC and nspawn containers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned | ||
systemd (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt | ||
Vivid |
Fix Released
|
Medium
|
Unassigned | ||
Wily |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
Test case
-------------
- Under Ubuntu 15.04 (or 15.10), set up an unprivileged container as in https:/
- Boot it. You'll get a lot of errors like
[FAILED] Failed to start Journal Service.
systemd-
[FAILED] Failed to listen on Journal Audit Socket.
- The same happens with systemd-nspawn -b.
As a result, the journal isn't working at all, and you have a bunch of failed journal related units.
With a fixed systemd package, systemd in the container should realize that it cannot listen to the audit socket (as the kernel doesn't allow that -- the audit subsystem isn't fit for namespaces right now), and "sudo journalctl" should show the journal and systemd-
REGRESSION POTENTIAL: Very low. This only affects the fallback error code path if binding to the audit socket failed. In that case the journal is currently not working at all. This usually doesn't happen on real iron/VMs (they also always CAP_AUDIT_READ), so there is no practical change there.
description: | updated |
description: | updated |
Changed in systemd (Ubuntu Vivid): | |
importance: | Undecided → Medium |
Upstream discussion: http:// lists.freedeskt op.org/ archives/ systemd- devel/2015- May/032113. html