All pastes #2000550 Raw Edit

Untitled

public text v1 · immutable
#2000550 ·published 2010-11-24 00:42 UTC
rendered paste body
#!/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