github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/apps/simpleexample/SimpleDomain/initdomain (about) 1 # 2 source ./defines 3 4 if [[ -e $DOMAIN ]] 5 then 6 echo "$DOMAIN exists" 7 else 8 mkdir $DOMAIN 9 mkdir $DOMAIN/policy_keys 10 echo "$DOMAIN created" 11 fi 12 13 if [[ -e $DOMAIN/SimpleDomainService ]] 14 then 15 echo "$DOMAIN/SimpleDomainService exists" 16 rm $DOMAIN/SimpleDomainService/* 17 else 18 mkdir $DOMAIN/SimpleDomainService 19 echo "$DOMAIN/SimpleDomainService created" 20 fi 21 22 if [[ -e $DOMAIN/SimpleClient ]] 23 then 24 echo "$DOMAIN/SimpleClient exists" 25 rm $DOMAIN/SimpleClient/* 26 else 27 mkdir $DOMAIN/SimpleClient 28 echo "$DOMAIN/SimpleClient created" 29 fi 30 31 if [[ -e $DOMAIN/SimpleClientCpp ]] 32 then 33 echo "$DOMAIN/SimpleClientCpp exists" 34 rm $DOMAIN/SimpleClientCpp/* 35 else 36 mkdir $DOMAIN/SimpleClientCpp 37 echo "$DOMAIN/SimpleClientCpp created" 38 fi 39 40 if [[ -e $DOMAIN/SimpleServer ]] 41 then 42 echo "$DOMAIN/SimpleServer exists" 43 rm $DOMAIN/SimpleServer/* 44 else 45 mkdir $DOMAIN/SimpleServer 46 echo "$DOMAIN/SimpleServer created" 47 fi 48 49 $BINPATH/tao domain init -tao_domain $DOMAIN -config_template $TEMPLATE -pub_domain_address "127.0.0.1" -pass xxx 50 51 # 52 # The following line is not needed since we have a liberal guard. 53 # $BINPATH/tao domain policy -add_host -add_programs -add_linux_host -add_guard -tao_domain \ 54 # $DOMAIN -pass xxx -config_template $TEMPLATE 55 # If we had a restrictive guard, we'd have to call this command to create rules for the linux_host. 56