mei_rt2mei_rt2_fix_1meiyap-rt1rt2
Last change
on this file since 5aaeca3 was
c586a3c,
checked in by Mei <mei@…>, 13 years ago
|
1) add support for float static range constraint
2) add a testcase for testing float static range constraint
3) add runall-fast (skipping the creddy part)
|
-
Property mode set to
100755
|
File size:
1.2 KB
|
Line | |
---|
1 | rm -rf creds_dump |
---|
2 | |
---|
3 | pwd=`pwd` |
---|
4 | |
---|
5 | #eloc=/home/mei/Deter/abac/libabac |
---|
6 | eloc=$pwd/../../libabac |
---|
7 | #keyloc=/home/mei/Deter/abac/examples/fruits_rt2_typed |
---|
8 | keyloc=$pwd |
---|
9 | |
---|
10 | ralphs=`creddy --keyid --cert $keyloc/Ralphs_ID.pem` |
---|
11 | bob=`creddy --keyid --cert $keyloc/Bob_ID.pem` |
---|
12 | mary=`creddy --keyid --cert $keyloc/Mary_ID.pem` |
---|
13 | |
---|
14 | mary_what2eat="[keyid:$mary].oset:what2eat" |
---|
15 | bob_what2eat="[keyid:$bob].oset:what2eat" |
---|
16 | ralphs_apple="[keyid:$ralphs].oset:fruitprice([float:1.50])" |
---|
17 | |
---|
18 | ## dump all credentials |
---|
19 | $eloc/abac_prover_yap --keystore $keyloc --dump creds_dump |
---|
20 | |
---|
21 | # [keyid:mary].oset:what2eat <-?- [string:'orange'] (yes) |
---|
22 | echo "===good============ mary.what2eat <- orange yap " |
---|
23 | $eloc/abac_prover_yap --keystore $keyloc --oset "$mary_what2eat" --object "[string:'orange']" |
---|
24 | |
---|
25 | # [keyid:bob].oset:what2eat <-?- [string:'orange'] (no) |
---|
26 | echo "===bad============ bob.what2eat <- orange yap " |
---|
27 | $eloc/abac_prover_yap --keystore $keyloc --oset "$bob_what2eat" --object "[string:'orange']" |
---|
28 | |
---|
29 | # [keyid:$ralphs].oset:fruitprice([float:1.50]) <-?- [string:'apple'] (yes) |
---|
30 | echo "===good============ ralphs.fruitprice(1.50) <- apple yap " |
---|
31 | $eloc/abac_prover_yap --keystore $keyloc --oset "$ralphs_apple" --object "[string:'apple']" |
---|
32 | |
---|
33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.