mei_rt2mei_rt2_fix_1
Last change
on this file since 3a867a1 was
f824a9e,
checked in by Mei <mei@…>, 12 years ago
|
1) add more doc to python_tests
|
-
Property mode set to
100755
|
File size:
1.2 KB
|
Line | |
---|
1 | |
---|
2 | |
---|
3 | # access_rt2_typed |
---|
4 | |
---|
5 | pwd=`pwd` |
---|
6 | |
---|
7 | eloc=${ABAC_PROVER_PATH} |
---|
8 | keyloc=$pwd |
---|
9 | |
---|
10 | alpha=`creddy --keyid --cert $keyloc/Alpha_ID.pem` |
---|
11 | bob=`creddy --keyid --cert $keyloc/Bob_ID.pem` |
---|
12 | joe=`creddy --keyid --cert $keyloc/Joe_ID.pem` |
---|
13 | |
---|
14 | print $eloc/abac_prover_yap |
---|
15 | |
---|
16 | bob_prin="[keyid:$bob]" |
---|
17 | |
---|
18 | access_fileA="[keyid:$alpha].role:access([string:'Read'],[urn:'file//fileA'])" |
---|
19 | team_proj2="[keyid:$alpha].role:team([string:'proj2'])" |
---|
20 | bob_prin="[keyid:$bob]" |
---|
21 | joe_prin="[keyid:$joe]" |
---|
22 | |
---|
23 | ## dump all credentials |
---|
24 | $eloc/abac_prover_yap --keystore $keyloc --dump creds_dump |
---|
25 | |
---|
26 | # double check |
---|
27 | #creddy --roles --cert Alpha_access_qFqP__alpha_team_qP_attr.der |
---|
28 | |
---|
29 | #[keyid:Alpha].role:access([string:'Read'],[urn:'file//fileA']) <-?- [keyid:bob] (yes) |
---|
30 | echo " " |
---|
31 | echo "===good============ Alpha.access(Read,fileA)<-?-Bob" |
---|
32 | $eloc/abac_prover_yap --keystore $keyloc --role "$access_fileA" --principal "$bob_prin" |
---|
33 | |
---|
34 | echo " " |
---|
35 | echo "===bad============ Alpha.access(Read,fileA)<-?-Joe" |
---|
36 | $eloc/abac_prover_yap --keystore $keyloc --role "$access_fileA" --principal "$joe_prin" |
---|
37 | |
---|
38 | echo " " |
---|
39 | echo "===good============ Alpha.team(proj2)<-?-Joe" |
---|
40 | #[keyid:alpha].role:team([string:'proj2'])<-[keyid:Joe] |
---|
41 | $eloc/abac_prover_yap --keystore $keyloc --role "$team_proj2" --principal "$joe_prin" |
---|
42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.