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.3 KB
|
Rev | Line | |
---|
[abf8d5d] | 1 | # |
---|
| 2 | #Acme runs a testbed. They've delegated the authority to create |
---|
| 3 | #experiments to all their partners. The Globotron company is one such |
---|
| 4 | #partner. |
---|
| 5 | # |
---|
| 6 | # Acme.experiment_create <- Acme.partner.experiment_create |
---|
| 7 | # |
---|
| 8 | #Globotron has delegated the authority to anyone an admin thinks is a |
---|
| 9 | #'power user'. |
---|
| 10 | # |
---|
| 11 | # Globotron.experiment_create <- Globotron.admin.power_user |
---|
| 12 | # |
---|
| 13 | #Alice and Dave are admin(s), and their friend Bob is a power user: |
---|
| 14 | # |
---|
| 15 | # Globotron.admin <- Alice |
---|
| 16 | # Globotron.admin <- Dave |
---|
| 17 | # |
---|
| 18 | # Alice.power_user <- Bob |
---|
| 19 | # Dave.power_user <- Bob |
---|
| 20 | # |
---|
| 21 | #From these credentials, it is possible to show that |
---|
| 22 | # Acme.experiment_create <- Bob. |
---|
| 23 | # |
---|
| 24 | #In query.py, it show that Bob can create experiment at Acme and |
---|
| 25 | # there are 2 possible solution proof |
---|
| 26 | # |
---|
| 27 | # experiment_multi_rt0 |
---|
| 28 | |
---|
| 29 | # Credential 1 |
---|
| 30 | #[keyid:Acme].role:experiment_create |
---|
| 31 | # <- [keyid:Acme].role:partner.role:experiment_create |
---|
| 32 | |
---|
| 33 | # Credential 2 |
---|
| 34 | #[keyid:Acme].role:partner <- [keyid:Globotron] |
---|
| 35 | |
---|
| 36 | # Credential 3 |
---|
| 37 | #[keyid:Globotron].role:expriment_create |
---|
| 38 | <- [keyid:Globotron].role:admin.role:power_user |
---|
| 39 | |
---|
| 40 | # Credential 4 |
---|
| 41 | #[keyid:Globotron].role:admin <- [keyid:Alice] |
---|
| 42 | |
---|
| 43 | # Credential 5 |
---|
| 44 | #[keyid:Alice].role:power_user <- [keyid:Bob] |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | # Credential 6 |
---|
| 48 | #[keyid:Globotron].role:admin <- [keyid:Dave] |
---|
| 49 | |
---|
| 50 | # Credential 7 |
---|
| 51 | #[keyid:Dave].role:power_user <- [keyid:Bob] |
---|
| 52 | |
---|
Note: See
TracBrowser
for help on using the repository browser.