source: examples/python_tests/acme_multi_rt0/README @ 20eaefe

mei_rt2mei_rt2_fix_1
Last change on this file since 20eaefe was abf8d5d, checked in by Mei <mei@…>, 12 years ago

1) add backtrack/multiple solutions proof code changes and new

examples.

  • Property mode set to 100755
File size: 1.1 KB
Line 
1#
2# The example makes use of 2 principals, Acme and Coyote.
3#
4# This example shows simple delegation of roles by Acme with multiple
5# resulting proofs.  Acme's buy_rockets role includes all of Acme's
6# preferred customers and worst lucked.  The setup.py creates the principals
7# and the attr.py creates 4 policy credentials. 
8# Credential 1 encodes the policy that all of Acme's preferred customers
9# can buy rockets from Acme,
10# Credential 2 encodes the policy that all of Acme's worst lucked
11# can buy rockets from Acme,
12# Credential 3 defines the Coyote as an Acme preferred customer and
13# Credential 4 defines the Coyote as an Acme worst lucked.
14
15# The ./run_query script issues queries to show that the Coyote is both a preferred
16# customer and can buy rockets and continue to find that Coyote is both worst lucked
17# and can buy rockets.
18
19# acme_multi_rt0
20
21# Credential 1
22#[keyid:Acme].role:buy_rockets <- [keyid:Acme].role:preferred_customer
23
24# Credential 2
25#[keyid:Acme].role:buy_rockets <- [keyid:Acme].role:worst_lucked
26
27# Credential 3
28#[keyid:Acme].role:preferred_customer <- [keyid:Coyote]
29
30# Credential 4
31#[keyid:Acme].role:worst_lucked <- [keyid:Coyote]
32
Note: See TracBrowser for help on using the repository browser.