github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/apps/newfileproxy/NewfileproxyDomain/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/FileClient ]] 23 then 24 echo "$DOMAIN/FileClient exists" 25 rm $DOMAIN/FileClient/* 26 else 27 mkdir $DOMAIN/FileClient 28 echo "$DOMAIN/FileClient created" 29 fi 30 31 if [[ -e $DOMAIN/FileServer ]] 32 then 33 echo "$DOMAIN/FileServer exists" 34 rm $DOMAIN/FileServer/* 35 else 36 mkdir $DOMAIN/FileServer 37 echo "$DOMAIN/FileServer created" 38 fi 39 40 $BINPATH/tao domain init -tao_domain $DOMAIN -config_template $TEMPLATE -pub_domain_address "127.0.0.1" -pass xxx 41 42 # 43 # The following line is not needed since we have a liberal guard. 44 # $BINPATH/tao domain policy -add_host -add_programs -add_linux_host -add_guard -tao_domain \ 45 # $DOMAIN -pass xxx -config_template $TEMPLATE 46 # If we had a restrictive guard, we'd have to call this command to create rules for the linux_host. 47