init: restore SELinux labels after policy is loaded
authorDaniel Golle <daniel@makrotopia.org>
Tue, 3 May 2022 00:12:04 +0000 (01:12 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 3 May 2022 01:05:16 +0000 (02:05 +0100)
commit652e6df06f8413f19a4786a275862cfe76628093
treead08a03580fde31c24593db92f5ceba6e047889e
parenteb03f03105a857a0b7310e4c93bff46aa29f3a40
init: restore SELinux labels after policy is loaded

Introduce an additional SELinux init step to calling restorecon to
label the filesystem. This fixes SELinux on initramfs or systems
with ext4 or ubifs read-write root filesystem.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
initd/init.c