Bug 1673847
Summary: | SELinux is preventing /usr/lib/systemd/systemd-journald from using the 'signull' accesses on a process. | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Matt Fagnani <matt.fagnani> | ||||
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> | ||||
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | awilliam, dwalsh, lvrabec, mgrepl, mikhail.v.gavrilov, msekleta, nicolas.mailhot, plautrba, ppywlkiqletw, pwhalen, zbyszek, zpytela | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | abrt_hash:ce08e5073f70ac9b65a5171d53193c9abbe8f2a25021ee7b0914972aae8e6552; openqa | ||||||
Fixed In Version: | selinux-policy-3.14.4-8.fc31 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1676923 (view as bug list) | Environment: | |||||
Last Closed: | 2019-04-05 17:58:42 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Matt Fagnani
2019-02-08 09:53:44 UTC
Created attachment 1528021 [details]
ausearch -m AVC,USER_AVC,SELINUX_ERR -ts boot output
This attachment is the output of
sudo ausearch -m AVC,USER_AVC,SELINUX_ERR -ts boot > ausearch-systemd-journald-1.txt after booting with systemd-239-10.git4dc7dce.fc29.
The denials involve systemd-journald with label syslogd_t using signull on processes with the following labels: unconfined_service_t, rpm_t, mount_t, alsa_t, fsdaemon_t, modemmanager_t, auditd_t, devicekit_disk_t, cupsd_t, systemd_logind_t, NetworkManager_t, xdm_t, accountsd_t, dhcpc_t.
openQA tests saw the same results as Matt - see all the tests that show up orange here: https://openqa.fedoraproject.org/tests/overview?distri=fedora&version=29&build=Update-FEDORA-2019-1fb1547321&groupid=2 . They're all orange (which is the kinda 'passed but with warnings' state) because a check for AVCs ran during those tests (it doesn't run in all the tests) and found AVCs. The same AVCs aren't showing up in other update tests, so they are definitely related to this update. C&P from bodhi: > I reverted the one patch that I think was causing the selinux issues. Journald will use more memory, but not as much as before. What the patch did was to periodically drop the entries for all dead processes from the cache. This now is disabled, so the cache will always stay at the maximum. > What is slightly surprising, is that patch is present in rawhide for a few days, and nobody reported the issue. So maybe nobody has selinux enabled ;) So, this bug should still present in rawhide, but not F29. selinux maintainers: please allow kill(0, ...) to be done from systemd-journald. This is what systemd-journald started doing in this update, and I assume that this is what 'signull' means. If possible, I'd also like to have this policy change in F29, if it's not too much work. Otherwise just F30+ is enough. "What is slightly surprising, is that patch is present in rawhide for a few days, and nobody reported the issue. So maybe nobody has selinux enabled ;)" I do, but your recent systemd build (systemd-241~rc2-1.fc30) is not actually in any Rawhide compose yet. The last Rawhide compose was 2019-02-05. So no-one running Rawhide has it unless they got it from Koji manually. Sorry, I'm on PTO and slightly out of the loop. I *should* have tested the update with selinux. I haven't seen any systemd-journald signull denials during a few boots using 239-11. Thanks for the update and explanation. *** Bug 1674109 has been marked as a duplicate of this bug. *** commit 8258bc10ab4591c277398a872364355be7b15cd4 (HEAD -> rawhide) Author: Lukas Vrabec <lvrabec> Date: Mon Feb 11 16:45:12 2019 +0100 Allow syslogd_t domain to send null signal to all domains on system Resolves: rhbz#1673847 Description of problem: This started after upgrading to systemd-241~rc2-2.fc30.x86_64 Version-Release number of selected component: selinux-policy-3.14.3-20.fc30.noarch Additional info: reporter: libreport-2.10.0 hashmarkername: setroubleshoot kernel: 5.0.0-0.rc5.git0.1.fc30.x86_64 type: libreport |