source: examples/python_tests/access_rt2/access.save @ 5d06689

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

1) modify abac.hh and added abac_c.c to unify the c and c++ api

interface (almost)

2) add new API
3) tweak the tests
4) filling missing code for abac_verifier_load_attribute_cert_attribute

  • Property mode set to 100644
File size: 739 bytes
RevLine 
[5110d42]1% Restoring file /usr/local/lib/Yap/startup.yss
2
3===good============ Alpha.access(Read,fileA)<-?-Bob
4YAP query succeed
5pAlpha.access('Read',F:pAlpha.documents(P)) <- pAlpha.team(P)
6pAlpha.documents('proj1') <- 'file//fileA'
7pAlpha.team('proj1') <- pBob
8
9===bad============ Alpha.access(Read,fileA)<-?-Joe
10YAP query failed
11
12===good============ Alpha.team(proj2)<-?-Joe
13YAP query succeed
14pAlpha.team('proj2') <- pJoe
[5d06689]15...initial principal set...
16(pAlpha,keyid,y)
17(pBob,keyid,y)
18(pJoe,keyid,y)
19
20
21...initial policy attribute set...
22pAlpha.access('Read','file//fileB') <- pBob
23pAlpha.access('Read',F:pAlpha.documents(P)) <- pAlpha.team(P)
24pAlpha.team('proj1') <- pBob
25pAlpha.documents('proj1') <- 'file//fileA'
26pAlpha.team('proj2') <- pJoe
27
28
Note: See TracBrowser for help on using the repository browser.