You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing SELinux rules (was: Empty bootupctl status since 0.2.20) #694
If for whatever reason the previous command fails, then I need to systemctl reset-failed before calling bootupd again.
root@fedora:~# systemd-run --unit bootupd --property=MountFlags=slave --service-type=oneshot --pipe bootupctl status
Running as unit: bootupd.service
root@fedora:~# systemd-run --unit bootupd --property=MountFlags=slave --service-type=oneshot --pty bootupctl status
Running as unit: bootupd.service; invocation ID: c111d0e1cebe4401bb89af4cfa5358f1
Press ^] three times within 1s to disconnect TTY.
root@fedora:~# systemd-run --unit bootupd --property=MountFlags=slave --service-type=oneshot --pty bootupctl status
Failed to start transient service unit: Unit bootupd.service was already loaded or has a fragment file.
root@fedora:~# systemctl status bootupd.service
× bootupd.service - /usr/bin/bootupctl status
Loaded: loaded (/run/systemd/transient/bootupd.service; transient)
Transient: yes
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: failed (Result: signal) since Mon 2024-07-29 16:46:17 CEST; 14s ago
Invocation: c111d0e1cebe4401bb89af4cfa5358f1
Process: 4624 ExecStart=/usr/bin/bootupctl status (code=killed, signal=HUP)
Main PID: 4624 (code=killed, signal=HUP)
Mem peak: 3M
CPU: 32ms
Jul 29 16:46:17 fedora systemd[1]: Starting bootupd.service - /usr/bin/bootupctl status...
Jul 29 16:46:17 fedora systemd[1]: bootupd.service: Main process exited, code=killed, status=1/HUP
Jul 29 16:46:17 fedora systemd[1]: bootupd.service: Failed with result 'signal'.
Jul 29 16:46:17 fedora systemd[1]: Failed to start bootupd.service - /usr/bin/bootupctl status.
root@fedora:~# systemd-run --unit bootupd --property=MountFlags=slave --service-type=oneshot --pty bootupctl status
Failed to start transient service unit: Unit bootupd.service was already loaded or has a fragment file.
Activity
travier commentedon Jul 29, 2024
Hum, we already are using
--pipe, so looks like something else is not working as expected.travier commentedon Jul 29, 2024
Looks like we also need
--service-type=oneshottravier commentedon Jul 29, 2024
and. Not this one, we would habe to stop /reset it every time.--remain-after-exittravier commentedon Jul 29, 2024
If for whatever reason the previous command fails, then I need to
systemctl reset-failedbefore calling bootupd again.travier commentedon Jul 29, 2024
Ah, I think I understand now. We need to
--waitfor the unit to start and terminate. Might need--quietas well.travier commentedon Jul 29, 2024
Hum, I still don't get any output with:
and using
--ptymakes it fail with SIGHUP.HuijingHei commentedon Jul 29, 2024
No such issue on fcos-rawhide 41.20240720.91.0
travier commentedon Jul 29, 2024
One likely notable difference is that Fedora CoreOS Rawhide still uses systemd 255.
travier commentedon Jul 29, 2024
Might be systemd/systemd#32917
HuijingHei commentedon Jul 31, 2024
Hit this when do testing for https://bugzilla.redhat.com/show_bug.cgi?id=2300306, with upgrade selinux to
selinux-policy-41.10-1.20240729144215211154.pr2271.13.g8bed6eac7.fc40.noarch.Set selinux to permissive to run
setenforce 0, then the output looks good, so the root cause might be fedora-selinux/selinux-policy@0cbc7datravier commentedon Jul 31, 2024
semanage permissive -a bootupd_tgets me the status back on Silverblue 41.cgwalters commentedon Jul 31, 2024
Ugh...I knew the selinux policy would break a ton of things, we should never have done that.
HuijingHei commentedon Aug 19, 2024
Test with latest selinux-policy, bootupctl status works, but still have selinux avc denied log
travier commentedon Aug 20, 2024
That's likely coreos/fedora-coreos-tracker#1771
tests: verify `bootupctl status` output is not empty
8 remaining items
travier commentedon Sep 3, 2024
Part 2 in fedora-selinux/selinux-policy#2341
[-]Empty `bootupctl status` since 0.2.20[/-][+]Missing SELinux rules (was: Empty `bootupctl status` since 0.2.20)[/+]travier commentedon Sep 4, 2024
Freeze exception for F41: https://bugzilla.redhat.com/show_bug.cgi?id=2309742
HuijingHei commentedon Sep 26, 2024
Part 3 in fedora-selinux/selinux-policy#2362
bootupd: Put in permissive until SELinux issues are fixed
travier commentedon Nov 20, 2024
Looks like fixes has just been merged in the policy. We'll have to wait for a build and test this again.
travier commentedon Nov 25, 2024
This should be fixed with selinux-policy-41.26-1.fc41.
HuijingHei commentedon Nov 26, 2024
Verify
selinux-policy-41.26-1.fc41onfedora-coreos-41.20241124.20.0-qemu.x86_64.qcow2, the issue is fixed.Also verify passed on Silverblue 41.20241126.0.
HuijingHei commentedon Nov 26, 2024
Close this the issue is fixed.
travier commentedon Nov 26, 2024
Great! Thanks!
bootupd: Put in permissive until SELinux issues are fixed