Merge pull request #447 from mjg59/master

Ensure that selinux policy is installed in correct location
This commit is contained in:
mjg59 2015-08-24 16:53:27 -07:00
commit 0bc560d6ad

View File

@ -321,7 +321,7 @@ finish_image() {
# Build the selinux policy # Build the selinux policy
if pkg_use_enabled coreos-base/coreos selinux; then if pkg_use_enabled coreos-base/coreos selinux; then
sudo chroot "${root_fs_dir}" bash -c "cd /usr/share/selinux/mcs && semodule -i *.pp" sudo chroot "${root_fs_dir}" bash -c "cd /usr/share/selinux/mcs && semodule -s mcs -i *.pp"
fi fi
# We only need to disable rw and apply dm-verity in prod with a /usr partition # We only need to disable rw and apply dm-verity in prod with a /usr partition