abac0-leak
Last change
on this file since b838398 was
4f79997,
checked in by Mei <mei@…>, 11 years ago
|
1) add a new scaling test -haystack/ralphs
2) tweak some libabac code here and there
|
-
Property mode set to
100755
|
File size:
1.1 KB
|
Rev | Line | |
---|
[4f79997] | 1 | #!/usr/bin/env sh |
---|
| 2 | |
---|
| 3 | # number of credentials, 9 + 4 x #VAL# |
---|
| 4 | |
---|
| 5 | if [ -z "${TESTDIR}" ] ; then |
---|
| 6 | TESTDIR=../../../.. |
---|
| 7 | fi |
---|
| 8 | . ${TESTDIR}/test_util.sh |
---|
| 9 | keyloc=`pwd` |
---|
| 10 | |
---|
| 11 | ralphs=`$eloc/creddy --keyid --cert $keyloc/Ralphs_ID.pem` |
---|
| 12 | apple=`$eloc/creddy --keyid --cert $keyloc/Apple_ID.pem` |
---|
| 13 | computer=`$eloc/creddy --keyid --cert $keyloc/Computer_ID.pem` |
---|
| 14 | Alice=`$eloc/creddy --keyid --cert $keyloc/Alice_ID.pem` |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | # [keyid:ralphs].role:order <-?- [keyid:apple] (yes) |
---|
| 18 | # [keyid:ralphs].role:order <-?- [keyid:computer] (no) |
---|
| 19 | |
---|
| 20 | ralphs_order="$ralphs.order" |
---|
| 21 | apple_prin="$apple" |
---|
| 22 | computer_prin="$computer" |
---|
| 23 | |
---|
| 24 | `$ploc/abac_prover --keystore $keyloc --dump dump.file` |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | echo "===good=============== Ralphs.order <- Apple" |
---|
| 28 | runTest scaling_tests/haystack/ralphs_prover test1 \ |
---|
| 29 | "$ploc/abac_prover --keystore $keyloc --role $ralphs_order --principal $apple_prin" \ |
---|
| 30 | 0 \ |
---|
| 31 | "simple good query" |
---|
| 32 | |
---|
| 33 | echo "===bad=============== Ralphs.order <- Computer" |
---|
| 34 | runTest scaling_tests/haystack/ralphs_prover test1 \ |
---|
| 35 | "$ploc/abac_prover --keystore $keyloc --role $ralphs_order --principal $computer_prin" \ |
---|
| 36 | 1 \ |
---|
| 37 | "simple bad query" |
---|
| 38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.