abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change
on this file since 7e3f5e2 was
b7b2ca1,
checked in by Mei <mei@…>, 12 years ago
|
1) 1 new test
|
-
Property mode set to
100755
|
File size:
605 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | pwd=`pwd` |
---|
4 | eloc=`which abac_prover | sed 's/\/abac_prover//'` |
---|
5 | if [ "$eloc" = "" ]; then |
---|
6 | echo "ERROR: abac_prover is not in the search path!!!" |
---|
7 | exit 1 |
---|
8 | fi |
---|
9 | |
---|
10 | keyloc=$pwd |
---|
11 | |
---|
12 | ice=`creddy --keyid --cert $keyloc/IceCream_ID.pem` |
---|
13 | chocolate_prin=`creddy --keyid --cert $keyloc/Chocolate_ID.pem` |
---|
14 | |
---|
15 | delicious="$ice.delicious" |
---|
16 | |
---|
17 | #[keyid:Acme].role:preferred_customer <-?- [keyid:Coyote] |
---|
18 | #isMember(pCoyote, role(pAcme,preferred_customer), C). |
---|
19 | echo " " |
---|
20 | echo "===good============ IceCream.delicious <- Chocolate" |
---|
21 | $eloc/abac_prover --keystore $keyloc \ |
---|
22 | --role "$delicious" --principal "$chocolate_prin" |
---|
23 | |
---|
Note: See
TracBrowser
for help on using the repository browser.