1 | |
---|
2 | This directory contains various ABAC scenarios that exercise |
---|
3 | various feature of the current RT2 implmentation using YAP prolog. |
---|
4 | |
---|
5 | The frontend query client is abac_prover_yap. |
---|
6 | |
---|
7 | Each subdirectory has a README script which includes a description |
---|
8 | of the scenario, and creddy calls that generate the needed credentials. |
---|
9 | There is a run_query script which sets up and runs couple of typical |
---|
10 | query using abac_prover_yap. |
---|
11 | |
---|
12 | runall, is the top level script that will cleanup and setup the |
---|
13 | credentials needed in each subdirectories |
---|
14 | |
---|
15 | runcheck, is the top level script that initiates the run_query scripts |
---|
16 | within each subdirectory with ABAC_CN mode (see below); captures the |
---|
17 | result and compares with the baseline result stored in allout.save. |
---|
18 | runcheck also makes a complete run_query run without ABAC_CN enabled as |
---|
19 | a round of regression testing. |
---|
20 | |
---|
21 | abac_prover_yap |
---|
22 | |
---|
23 | Usage: abac_prover_yap |
---|
24 | --keystore <keystore> |
---|
25 | --role <keyid.role> --principal <keyid> |
---|
26 | --oset <keyid.oset> --object <otype> |
---|
27 | loads the keystore and runs the query role <-?- principal |
---|
28 | the query oset <-?- object |
---|
29 | --dump <file> |
---|
30 | extracts all credentials from the prolog db |
---|
31 | |
---|
32 | keystore is the location where the prover will search to load credentials. |
---|
33 | All accessible identity credentials and attribute credentials will be |
---|
34 | picked up one file at a time. |
---|
35 | |
---|
36 | role, oset, principal, and object are specified with principal's SHA1 |
---|
37 | value extracted from the credentials that are loaded from keystore location |
---|
38 | using creddy. Example can be found in the run_queryscript. |
---|
39 | |
---|
40 | An actual example from balltime_rt2_typed, |
---|
41 | |
---|
42 | abac_prover_yap --keystore /home/mei/Deter/abac/examples/balltime_rt2_typed |
---|
43 | --role [keyid:212146063d65264e8f27c31f0da592e386fc59aa].role:stadium |
---|
44 | ([string:'access'],[boolean:true],[time:20120228T130000]) |
---|
45 | --principal [keyid:49bdcd1278fce71d7c5cb3ee9138c22f7379e8e0] |
---|
46 | |
---|
47 | One useful environment variable, |
---|
48 | |
---|
49 | ABAC_CN, use CN instead of SHA1 value for identifying the principals. This |
---|
50 | is useful for debugging purpose but will not resolve conflict when CN is not |
---|
51 | uniquely associated with each principal's SHA1 value. |
---|
52 | |
---|
53 | env ABAC_CN=1 runall run |
---|
54 | |
---|
55 | |
---|