init: selinux: don't relabel virtual filesystems
authorDaniel Golle <daniel@makrotopia.org>
Sat, 7 May 2022 12:15:30 +0000 (13:15 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 1 Jun 2022 19:40:23 +0000 (20:40 +0100)
commit557c98e2966e0298a301f540824e2c3fce2452e6
tree359d37a5ae540891736ab90afbf5fae60f628c0f
parent652e6df06f8413f19a4786a275862cfe76628093
init: selinux: don't relabel virtual filesystems

Attempting to relabel /dev/console, /proc or /sys results in an error
message. Avoid that by excluding them when relabeling rootfs on boot.

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