]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Enforce selinux to disabled lxc_0_5_1
authordlezcano <dlezcano>
Tue, 9 Dec 2008 17:58:29 +0000 (17:58 +0000)
committerdlezcano <dlezcano>
Tue, 9 Dec 2008 17:58:29 +0000 (17:58 +0000)
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Enforce selinux to disabled

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
scripts/lxc-debian.in

index 0af0a48d85f865cca84d5c7a34bd6328920aff97..025b791c86eac4f36fd0f60654df6640334a7faf 100755 (executable)
@@ -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=$?