source: examples/creddy_prover_tests/experiment_create_rt0/run_query @ efd7ebe

mei_rt2mei_rt2_fix_1
Last change on this file since efd7ebe 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
RevLine 
[718ad924]1
[9502c50]2# experiment_create_rt0_typed
[da5afdf]3
[c469edf]4pwd=`pwd`
[08b8da7]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
[c469edf]10keyloc=$pwd
[718ad924]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
[da5afdf]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
[9502c50]25#[keyid:Globotron].role:admin <-?- [keyid:Alice]
[718ad924]26#isMember(pAlice, role(pGlobotron,admin), C).
27echo " "
[9502c50]28echo "===good=============== Globotron.admin <- Alice"
[da5afdf]29$eloc/abac_prover_yap  --keystore $keyloc \
30             --role "$glob_admin" --principal "$alice_prin"
[718ad924]31
[9502c50]32#[keyid:Globotron].role:admin <-?- [keyid:Bob]
[718ad924]33#isMember(pBob, role(pGlobotron,admin), C).
34echo " "
[9502c50]35echo "===bad=============== Globotron.admin <- Bob"
[da5afdf]36$eloc/abac_prover_yap  --keystore $keyloc \
37             --role "$glob_admin" --principal "$bob_prin"
[718ad924]38
[9502c50]39#[keyid:Acme].role:experiment_create <-?- [keyid:Bob]
[718ad924]40#isMember(pBob, role(pAcme,experiment_create), C).
41echo " "
[9502c50]42echo "===good=============== Acme.experiment_create <- Bob"
[da5afdf]43$eloc/abac_prover_yap  --keystore $keyloc \
44             --role "$experiment_create" --principal "$bob_prin"
[718ad924]45
46
Note: See TracBrowser for help on using the repository browser.