#!/bin/bash if [ "$2" == "" ] then echo usage start containername exit 1 fi if [ "$1" == "start" ] then attr -S -s SMACK64 -V '*' /dev/tty attr -S -s SMACK64 -V '*' /dev/null attr -S -s SMACK64 -V '*' /dev/zero echo $2 > /proc/self/attr/current cat /proc/self/attr/current echo lxc-start -n $2 fi