Skip to content

Commit

Permalink
init: fix /sys/fs/selinux detection. Fix #110
Browse files Browse the repository at this point in the history
  • Loading branch information
89luca89 committed Jan 11, 2022
1 parent c74492f commit 462cfe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distrobox-init
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ done
# policies are installed inside it.
#
# Ref. Podman issue 4452: https://github.com/containers/podman/issues/4452
if [ -f "/sys/fs/selinux" ]; then
if [ -d "/sys/fs/selinux" ]; then
mkdir -p /usr/share/empty
if ! mount_bind /usr/share/empty /sys/fs/selinux rw; then
printf "Warning: Cannot bind mount %s to /run/host%s\n" "/usr/share/empty" " /sys/fs/selinux"
Expand Down

0 comments on commit 462cfe9

Please sign in to comment.