source: examples/python_tests/fruits_rt2/fruit.save @ 7751094

mei_rt2
Last change on this file since 7751094 was 2e9455f, checked in by Mei <mei@…>, 11 years ago

1) added namespace
2) tweak ?This,
3) allowing linking role/oset as constraining conditions
4) adding access_tests regression testing that uses GENI's access policy
5) added couple multi contexts regression tests
6) add compression/uncompression calls to abac_encode_string/abac_decode_string
(libstrongwan only allows 512 char for attribute rule storage)
7) add attribute_now option to creddy that takes a whole char string for attribute
rule

  • Property mode set to 100644
File size: 946 bytes
Line 
1
2...final principal set...
3(pBob,keyid,y)
4(pMary,keyid,y)
5(pRalphs,keyid,y)
6
7...final policy attribute set...
8pRalphs.fruitprice(1.50) <- 'apple'
9pRalphs.fruitprice(2.50) <- 'black berry'
10pRalphs.fruitprice(1.50) <- 'kiwi'
11pRalphs.fruitprice(0.50) <- 'navel orange'
12pBob.what2eat <- pRalphs.fruitprice(P:[1.000000..5.000000])
13pMary.what2eat <- pRalphs.fruitprice(P:[..2.000000])
14
15===good============ mary.what2eat <- navel orange
16YAP query succeed
17pMary.what2eat <- pRalphs.fruitprice(P:[..2.000000])
18pRalphs.fruitprice(0.50) <- 'navel orange'
19
20===good============ mary.what2eat <- kiwi
21YAP query succeed
22pMary.what2eat <- pRalphs.fruitprice(P:[..2.000000])
23pRalphs.fruitprice(1.50) <- 'kiwi'
24
25===bad============ bob.what2eat <- navel orange
26YAP query failed
27
28===good============ ralphs.fruitprice(1.50) <- apple
29YAP query succeed
30pRalphs.fruitprice(1.50) <- 'apple'
31
32===bad============ ralphs.fruitprice(1.50) <- green apple
33YAP query failed
Note: See TracBrowser for help on using the repository browser.