build-rootfs: Disable SELinux for now

Until we have a working CI pipeline that can appropriately manage the
SELinux policy in the target environment, anyway.
gentoo
Dustin 2024-12-05 21:02:28 -06:00
parent 62cdb405a3
commit 238c3aff05
2 changed files with 3 additions and 1 deletions

View File

@ -96,6 +96,7 @@ if ! grep -q Include /mnt/gentoo/etc/ssh/sshd_config; then
>> /mnt/gentoo/etc/ssh/sshd_config >> /mnt/gentoo/etc/ssh/sshd_config
fi fi
case ${profile} in *selinux*)
# Although `semanage` accepts a `--store` argument that supposedly # Although `semanage` accepts a `--store` argument that supposedly
# instructs it to operate on an alternate SELinux policy store, it # instructs it to operate on an alternate SELinux policy store, it
# doesn't actually work. As such, we have to run `semanage` in an # doesn't actually work. As such, we have to run `semanage` in an
@ -117,5 +118,7 @@ setfiles \
-e /mnt/gentoo/etc/portage \ -e /mnt/gentoo/etc/portage \
/mnt/gentoo/etc/selinux/mcs/contexts/files/file_contexts \ /mnt/gentoo/etc/selinux/mcs/contexts/files/file_contexts \
/mnt/gentoo /mnt/gentoo
;;
esac
touch /mnt/gentoo/usr touch /mnt/gentoo/usr

View File

@ -1,6 +1,5 @@
net-misc/openssh net-misc/openssh
net-misc/wget net-misc/wget
sec-policy/selinux-aimee-os
sys-apps/busybox sys-apps/busybox
sys-apps/systemd sys-apps/systemd
sys-fs/btrfs-progs sys-fs/btrfs-progs