source: examples/creddy_prover_tests/experiment_create_rt0/run_query @ 340bd01

mei_rt2mei_rt2_fix_1
Last change on this file since 340bd01 was 08b8da7, checked in by Mei <mei@…>, 12 years ago

1) rework examples directory with Makefile
2) update scaling with plotting scripts
3) add more doc in there

  • Property mode set to 100755
File size: 1.4 KB
Line 
1
2# experiment_create_rt0_typed
3
4pwd=`pwd`
5eloc=`which abac_prover_yap | sed 's/\/abac_prover_yap//'`
6if [ "$eloc" = "" ]; then
7  echo "ERROR: abac_prover_yap is not in the search path!!!"
8  exit 1
9fi
10keyloc=$pwd
11
12acme=`creddy --keyid --cert $keyloc/Acme_ID.pem`
13alice=`creddy --keyid --cert $keyloc/Alice_ID.pem`
14bob=`creddy --keyid --cert $keyloc/Bob_ID.pem`
15globotron=`creddy --keyid --cert $keyloc/Globotron_ID.pem`
16
17glob_admin="[keyid:$globotron].role:admin"
18alice_prin="[keyid:$alice]"
19bob_prin="[keyid:$bob]"
20experiment_create="[keyid:$acme].role:experiment_create"
21
22## dump all credentials
23$eloc/abac_prover_yap  --keystore $keyloc --dump creds_dump
24
25#[keyid:Globotron].role:admin <-?- [keyid:Alice]
26#isMember(pAlice, role(pGlobotron,admin), C).
27echo " "
28echo "===good=============== Globotron.admin <- Alice"
29$eloc/abac_prover_yap  --keystore $keyloc \
30             --role "$glob_admin" --principal "$alice_prin"
31
32#[keyid:Globotron].role:admin <-?- [keyid:Bob]
33#isMember(pBob, role(pGlobotron,admin), C).
34echo " "
35echo "===bad=============== Globotron.admin <- Bob"
36$eloc/abac_prover_yap  --keystore $keyloc \
37             --role "$glob_admin" --principal "$bob_prin"
38
39#[keyid:Acme].role:experiment_create <-?- [keyid:Bob]
40#isMember(pBob, role(pAcme,experiment_create), C).
41echo " "
42echo "===good=============== Acme.experiment_create <- Bob"
43$eloc/abac_prover_yap  --keystore $keyloc \
44             --role "$experiment_create" --principal "$bob_prin"
45
46
Note: See TracBrowser for help on using the repository browser.