]> git.ipfire.org Git - thirdparty/systemd.git/commit
selinux: fix loading policy at early boot
authorLuca Boccassi <bluca@debian.org>
Mon, 13 Nov 2023 19:26:33 +0000 (19:26 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 13 Nov 2023 21:32:46 +0000 (21:32 +0000)
commit4ce6e7d158f4e135d0f70359a12eba4ce68ce170
treefe549755ebbffec22643ada6ace1e5b48494e91a
parent888dccfde06dca4e62006c4543d4c427eddab710
selinux: fix loading policy at early boot

First, check for the cached enabled/disabled, as that's what all the
label functions used to do. Then, if initialization is not done yet,
do not cause the label functions to bail out, as it's expected to
happen at early boot.

Among other things, fixes:

systemd[1]: Failed to compute init label, ignoring.

Follow-up for: 0617da2edb91669a
src/shared/selinux-util.c