Skip to content

Commit

Permalink
run in chroot... again
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton authored May 24, 2024
1 parent be3ace0 commit e2297cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion katsu/modules/base/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ scripts:
- id: selinux-setup
name: Set up SELinux
file: selinux.sh
chroot: false
- id: buildstamp
name: Generate buildstamp
file: buildstamp.sh
Expand Down
4 changes: 2 additions & 2 deletions katsu/modules/base/selinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ set -euxo pipefail

echo "Setting up SELinux..."

BIN_POLICY=$(find "${CHROOT}"/etc/selinux/targeted/policy/policy.* -maxdepth 1 | sort -Vr | head -1)
BIN_POLICY=$(find /etc/selinux/targeted/policy/policy.* -maxdepth 1 | sort -Vr | head -1)

setfiles -m -F -p -r "${CHROOT}" -c "${BIN_POLICY}" "${CHROOT}"/etc/selinux/targeted/contexts/files/file_contexts "${CHROOT}"
setfiles -m -F -p -c "${BIN_POLICY}" /etc/selinux/targeted/contexts/files/file_contexts /

0 comments on commit e2297cc

Please sign in to comment.