From 7afc269d0e762d2e32fb7645f97fd4b4a0e28424 Mon Sep 17 00:00:00 2001 From: dlezcano Date: Tue, 9 Dec 2008 17:58:29 +0000 Subject: [PATCH] Enforce selinux to disabled From: Daniel Lezcano Enforce selinux to disabled Signed-off-by: Daniel Lezcano --- scripts/lxc-debian.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/lxc-debian.in b/scripts/lxc-debian.in index 0af0a48d8..025b791c8 100755 --- a/scripts/lxc-debian.in +++ b/scripts/lxc-debian.in @@ -18,6 +18,13 @@ CACHE="@LOCALSTATEDIR@/cache/lxc/debian" # debian custom configuration files ################################################################################ +# custom selinux + +write_debian_selinux() { + mkdir $ROOTFS/selinux + echo 0 > $ROOTFS/selinux/enforce +} + # custom fstab write_debian_fstab() { @@ -219,7 +226,6 @@ create() { ) 200>/var/lock/subsys/lxc fi - write_lxc_mounts write_lxc_configuration @@ -234,6 +240,8 @@ write_debian_network write_debian_sshd_config +write_debian_selinux + @BINDIR@/lxc-create -n $NAME -f $CONFFILE RES=$?