Skip to content

Commit

Permalink
services.setup: workaround podman symlink relabelling bug
Browse files Browse the repository at this point in the history
  • Loading branch information
allisonkarlitskaya authored and mvollmer committed May 23, 2022
1 parent cb900e8 commit c5fb264
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions images/scripts/services.setup
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ EOF
chmod 755 /root/run-freeipa
/root/run-freeipa

# HACK: Podman fails to relabel symlinks properly, accidentally relabelling their targets instead
# https://github.com/opencontainers/selinux/pull/173
# Disable relabelling for subsequent runs and make SELinux permissive.
sed -i 's/data:Z/data/' /root/run-freeipa
sed -i 's/enforcing/permissive/' /etc/selinux/config

podman logs -f freeipa &
LOGS=$!

Expand Down

0 comments on commit c5fb264

Please sign in to comment.