Skip to content

Commit

Permalink
overlay coreos-base/misc-files: Do not set up the SELinux policy modu…
Browse files Browse the repository at this point in the history
…le directory

This will be done as a bashrc hook, unfortunately.
  • Loading branch information
krnowak committed Feb 28, 2024
1 parent 7a6d219 commit 15be8a8
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,13 @@ src_install() {
fi

if use policycoreutils; then
# Location for policy definitions.
dodir /usr/lib/selinux/policy
keepdir /usr/lib/selinux/policy
dosym ../../usr/lib/selinux/policy /var/lib/selinux
# Recreate the symlink in /var in case of wiping the root filesystem.
# Exceptionally, the location for policy definitions is set up
# initially in profiles/coreos/base/profile.bashrc. See the
# comment for cros_post_src_install_set_up_var_lib_selinux for
# reasoning.
#
# Recreate the symlink in /var in case of wiping the root
# filesystem.
dotmpfiles "${FILESDIR}/selinux/10-var-lib-selinux.conf"
fi

Expand Down

0 comments on commit 15be8a8

Please sign in to comment.