mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 21:11:08 +02:00
Merge pull request #1149 from kinvolk/tormath1/fix-457
docker/torcx: disable SELinux by default on `dockerd` wrapper script
This commit is contained in:
commit
22c2e57360
@ -34,8 +34,8 @@ parse_docker_args "$@"
|
|||||||
USE_SELINUX=""
|
USE_SELINUX=""
|
||||||
# Do not override selinux if it is already explicitly configured.
|
# Do not override selinux if it is already explicitly configured.
|
||||||
if [[ -z "${ARG_SELINUX}" ]]; then
|
if [[ -z "${ARG_SELINUX}" ]]; then
|
||||||
# If unspecified, default on
|
# If unspecified, default off
|
||||||
USE_SELINUX="--selinux-enabled"
|
USE_SELINUX="--selinux-enabled=false"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec dockerd "$@" ${USE_SELINUX}
|
exec dockerd "$@" ${USE_SELINUX}
|
||||||
|
@ -34,8 +34,8 @@ parse_docker_args "$@"
|
|||||||
USE_SELINUX=""
|
USE_SELINUX=""
|
||||||
# Do not override selinux if it is already explicitly configured.
|
# Do not override selinux if it is already explicitly configured.
|
||||||
if [[ -z "${ARG_SELINUX}" ]]; then
|
if [[ -z "${ARG_SELINUX}" ]]; then
|
||||||
# If unspecified, default on
|
# If unspecified, default off
|
||||||
USE_SELINUX="--selinux-enabled"
|
USE_SELINUX="--selinux-enabled=false"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec dockerd "$@" ${USE_SELINUX}
|
exec dockerd "$@" ${USE_SELINUX}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user