Description of problem: dnf upgrade SELinux is preventing systemd from 'setattr' accesses on the file LoaderSystemToken-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that systemd should be allowed setattr access on the LoaderSystemToken-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # ausearch -c 'systemd' --raw | audit2allow -M my-systemd # semodule -X 300 -i my-systemd.pp Additional Information: Source Context system_u:system_r:init_t:s0 Target Context system_u:object_r:efivarfs_t:s0 Target Objects LoaderSystemToken-4a67b082-0a4c-41cf-b6c7-440b29bb 8c4f [ file ] Source systemd Source Path systemd Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages SELinux Policy RPM selinux-policy-targeted-3.14.5-38.fc32.noarch Local Policy RPM selinux-policy-targeted-3.14.5-38.fc32.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 5.6.13-300.fc32.x86_64 #1 SMP Thu May 14 22:51:37 UTC 2020 x86_64 x86_64 Alert Count 1 First Seen 2020-06-11 12:34:14 CEST Last Seen 2020-06-11 12:34:14 CEST Local ID f7e70b47-32db-46aa-a494-6ffd8abf5808 Raw Audit Messages type=AVC msg=audit(1591871654.397:541): avc: denied { setattr } for pid=1 comm="systemd" name="LoaderSystemToken-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f" dev="efivarfs" ino=14617 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:efivarfs_t:s0 tclass=file permissive=0 Hash: systemd,init_t,efivarfs_t,file,setattr Version-Release number of selected component: selinux-policy-targeted-3.14.5-38.fc32.noarch Additional info: component: selinux-policy reporter: libreport-2.13.1 hashmarkername: setroubleshoot kernel: 5.6.13-300.fc32.x86_64 type: libreport
Zdenek, After discussion with systemd team, we should allow it, can you please prepare patches? Thanks, Lukas.
I've submitted a Fedora PR to address the issue: https://github.com/fedora-selinux/selinux-policy/pull/387
FEDORA-2020-876f7af8d8 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-876f7af8d8
FEDORA-2020-876f7af8d8 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-876f7af8d8` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-876f7af8d8 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-876f7af8d8 has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report.