github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/apps/simpleexample/SimpleDomain/runalltpm2full (about)

     1  #
     2  source ./defines
     3  
     4  # These should be run as root.
     5  $BINPATH/tao host init -tao_domain $DOMAINTPM2 -stacked -parent_type TPM2 -hosting process
     6  sleep 5
     7  $BINPATH/tao host start -tao_domain $DOMAINTPM2 &
     8  sleep 5
     9  
    10  #
    11  # Starting the programs should be done as the unprivileged user it runs for
    12  # to provide isolation.
    13  # We run as root for convenience to avoid script clutter.
    14  #
    15  sleep 1
    16  $BINPATH/domain_server -pass xxx -domain_config $DOMAINTPM2/tao.config -trusted_entities $DOMAINTPM2/TrustedEntities &
    17  sleep 1
    18  $BINPATH/tao run -tao_domain $DOMAINTPM2 $BINPATH/SimpleServer \
    19  -domain_config $DOMAINTPM2/tao.config -path $DOMAINTPM2/SimpleServer \
    20  -use_simpledomainservice=false &
    21  sleep 1
    22  $BINPATH/tao run -tao_domain $DOMAINTPM2 $BINPATH/SimpleClient \
    23  -domain_config $DOMAINTPM2/tao.config -path $DOMAINTPM2/SimpleClient \
    24  -use_simpledomainservice=false &
    25