mirror of
https://github.com/flatcar/scripts.git
synced 2026-03-04 21:11:43 +01:00
build_library: Building selinux policy
Signed-off-by: Krzesimir Nowak <knowak@microsoft.com>
This commit is contained in:
parent
7a8acfab9a
commit
c378fe8337
@ -681,7 +681,12 @@ EOF
|
||||
|
||||
# Build the selinux policy
|
||||
if pkg_use_enabled coreos-base/coreos selinux; then
|
||||
sudo chroot "${root_fs_dir}" bash -c "cd /usr/share/selinux/mcs && semodule -s mcs -i *.pp"
|
||||
info "Building selinux mcs policy"
|
||||
sudo chroot "${root_fs_dir}" bash -s <<'EOF'
|
||||
cd /usr/share/selinux/mcs
|
||||
set -x
|
||||
semodule -s mcs -i *.pp
|
||||
EOF
|
||||
fi
|
||||
|
||||
# Run tmpfiles once to make sure that /etc has everything in place before
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user