source: examples/creddy_prover_tests/acme_rockets_intersection_rt0/run_query @ 94d1dae

abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change on this file since 94d1dae was 461541a, checked in by Mei <mei@…>, 12 years ago

1) updated original rt0 to remove libstrongswan dependency

a) identity credential being made/accessed with openssl api calls

(X509/EVP_PKEY pem)

b) attribute credential being made/access via xmlsec1 (custom XML

structure)

2) refactored libcreddy into libabac and now one ABAC namespace for

libabac

3) added attribute_rule suboption to creddy's attribute as another way

to insert access rule

4) added some regression tests into example directory
5) updated some docs.

  • Property mode set to 100755
File size: 1.2 KB
Line 
1#!/bin/sh
2# acme_rockets_intersection
3
4pwd=`pwd`
5
6eloc=`which abac_prover | sed 's/\/abac_prover//'`
7if [ "$eloc" = "" ]; then
8  echo "ERROR: abac_prover is not in the search path!!!"
9  exit 1
10fi
11keyloc=$pwd
12
13acme=`creddy --keyid --cert $keyloc/Acme_ID.pem`
14batman=`creddy --keyid --cert $keyloc/Batman_ID.pem`
15coyote=`creddy --keyid --cert $keyloc/Coyote_ID.pem`
16
17buy_rockets="$acme.buy_rockets"
18coyote_prin="$coyote"
19batman_prin="$batman"
20bad_buy_rockets="$acme.bad_buy_rockets"
21bad_buy_rockets2="99$acme.buy_rockets"
22
23echo "  "
24echo "===good============ Acme.buy_rockets <- Coyote"
25$eloc/abac_prover  --keystore $keyloc \
26              --role "$buy_rockets" --principal "$coyote_prin"
27
28echo "  "
29echo "===bad============ Acme.bad_buy_rockets <- Coyote"
30$eloc/abac_prover  --keystore $keyloc \
31              --role "$bad_buy_rockets" --principal "$coyote_prin"
32
33echo "  "
34echo "===bad============ 99Acme.buy_rockets <- Coyote"
35$eloc/abac_prover  --keystore $keyloc \
36              --role "$bad_buy_rockets2" --principal "$coyote_prin"
37
38echo "  "
39echo "===bad=============== Acme.buy_rockets <- Batman"
40$eloc/abac_prover  --keystore $keyloc \
41              --role "$buy_rockets" --principal "$batman_prin"
42
43
Note: See TracBrowser for help on using the repository browser.