Systemd is missing a patch to allow it to be used with SELinux

Bug #1848777 reported by zak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Fix Released
Undecided
Unassigned
Bionic
New
Undecided
Unassigned

Bug Description

Ubuntu Version:
Description: Ubuntu 18.04.3 LTS
Release: 18.04

Systemd version:
Installed: 273-ubuntu10.29
Candidate: 273-ubuntu10.31

Expected Behavior:
Systemd will only remount the cgroups if they need to be relabeled.

Actual Behavior:
Systemd will try to re-mount the cgroups for relabeling which will fail and break systemd services that use cgroups.

Upstream fix:
https://github.com/systemd/systemd/pull/8595

Additional Notes:
I was able to work around this issue by applying the patch linked and changing the line:
https://github.com/systemd/systemd/pull/8595/files#diff-9e1684efe63d10844b8dd6708fc60e8dR408
To use the 237 version of fix label. E.G. (void) label_fix("/sys/fs/cgroup", true, true);
While building the package from source.

Revision history for this message
Balint Reczey (rbalint) wrote :

The fix is present in v240 and later.

Changed in systemd (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.