Skip to content

Commit

Permalink
policies example (SUT)
Browse files Browse the repository at this point in the history
  • Loading branch information
damascenodiego committed Mar 13, 2016
1 parent 1dddb0b commit a02a3c1
Show file tree
Hide file tree
Showing 12 changed files with 682 additions and 0 deletions.
60 changes: 60 additions & 0 deletions policies_example/ExperiencePoints.rbac
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<RBAC name="ExperiencePoints">
<users>
<user name="u1"/>
<user name="u2"/>
<user name="u3"/>
</users>
<roles>
<role name="Admin"/>
<role name="Bronze"/>
<role name="Silver"/>
<role name="Gold"/>
</roles>
<permissions>
<permission name="ReplyPost"/>
<permission name="NewPost"/>
<permission name="BeReplied"/>
<permission name="Download"/>
</permissions>
<SuConstraints>
<Su cardinality="2" user="u1"/>
<Su cardinality="2" user="u2"/>
</SuConstraints>
<DuConstraints/>
<SrConstraints>
</SrConstraints>
<DrConstraints/>
<URAssignments>
<AS role="Admin" user="u1"/>
<AS role="Silver" user="u1"/>
<AS role="Gold" user="u3"/>
</URAssignments>
<URActivations/>
<PRAssignments>
<PA permission="ReplyPost" role="Admin"/>
<PA permission="NewPost" role="Admin"/>
<PA permission="BeReplied" role="Admin"/>
<PA permission="Download" role="Admin"/>
<PA permission="ReplyPost" role="Bronze"/>
<PA permission="NewPost" role="Bronze"/>
<PA permission="BeReplied" role="Bronze"/>
<PA permission="ReplyPost" role="Silver"/>
<PA permission="NewPost" role="Silver"/>
<PA permission="BeReplied" role="Silver"/>
<PA permission="Download" role="Silver"/>
<PA permission="ReplyPost" role="Gold"/>
<PA permission="NewPost" role="Gold"/>
<PA permission="BeReplied" role="Gold"/>
<PA permission="Download" role="Gold"/>
</PRAssignments>
<SSoDConstraints>
</SSoDConstraints>
<DSoDConstraints>
<DSoD cardinality="1">
<role name="Bronze"/>
<role name="Silver"/>
<role name="Gold"/>
</DSoD>
</DSoDConstraints>
</RBAC>
65 changes: 65 additions & 0 deletions policies_example/ExperiencePointsv2.rbac
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<RBAC name="ExperiencePointsv2">
<users>
<user name="u1"/>
<user name="u2"/>
</users>
<roles>
<role name="Admin"/>
<role name="Bronze"/>
<role name="Silver"/>
<role name="Gold"/>
</roles>
<permissions>
<permission name="ReplyPost"/>
<permission name="NewPost"/>
<permission name="BeReplied"/>
<permission name="Download"/>
</permissions>
<SuConstraints/>
<DuConstraints/>
<SrConstraints>
<Sr cardinality="1" role="Admin"/>
</SrConstraints>
<DrConstraints/>
<URAssignments/>
<URActivations/>
<PRAssignments>
<PA permission="ReplyPost" role="Admin"/>
<PA permission="NewPost" role="Admin"/>
<PA permission="BeReplied" role="Admin"/>
<PA permission="Download" role="Admin"/>
<PA permission="ReplyPost" role="Bronze"/>
<PA permission="NewPost" role="Bronze"/>
<PA permission="BeReplied" role="Bronze"/>
<PA permission="ReplyPost" role="Silver"/>
<PA permission="NewPost" role="Silver"/>
<PA permission="BeReplied" role="Silver"/>
<PA permission="Download" role="Silver"/>
<PA permission="ReplyPost" role="Gold"/>
<PA permission="NewPost" role="Gold"/>
<PA permission="BeReplied" role="Gold"/>
<PA permission="Download" role="Gold"/>
</PRAssignments>
<SSoDConstraints>
<SSoD cardinality="2">
<role name="Silver"/>
<role name="Bronze"/>
<role name="Admin"/>
<role name="Gold"/>
</SSoD>
<SSoD cardinality="1">
<role name="Silver"/>
<role name="Bronze"/>
<role name="Gold"/>
</SSoD>
</SSoDConstraints>
<DSoDConstraints>
<DSoD cardinality="1">
<role name="Silver"/>
<role name="Bronze"/>
<role name="Admin"/>
<role name="Gold"/>
</DSoD>
</DSoDConstraints>
</RBAC>
57 changes: 57 additions & 0 deletions policies_example/Masood2009P1.rbac
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<RBAC name="Masood2009P1">
<users>
<user name="U1"/>
<user name="U2"/>
<user name="U3"/>
<user name="U4"/>
<user name="U5"/>
</users>
<roles>
<role name="R1"/>
<role name="R2"/>
<role name="R3"/>
<role name="R4"/>
</roles>
<permissions/>
<SuConstraints/>
<DuConstraints>
<Du cardinality="2" user="U1"/>
<Du cardinality="2" user="U2"/>
<Du cardinality="2" user="U3"/>
<Du cardinality="2" user="U4"/>
<Du cardinality="1" user="U5"/>
</DuConstraints>
<SrConstraints/>
<DrConstraints>
<Dr cardinality="3" role="R1"/>
<Dr cardinality="1" role="R2"/>
<Dr cardinality="3" role="R3"/>
<Dr cardinality="2" role="R4"/>
</DrConstraints>
<URAssignments>
<AS role="R1" user="U1"/>
<AS role="R1" user="U4"/>
<AS role="R2" user="U2"/>
<AS role="R2" user="U5"/>
<AS role="R3" user="U1"/>
<AS role="R3" user="U2"/>
<AS role="R3" user="U4"/>
<AS role="R4" user="U4"/>
<AS role="R4" user="U5"/>
</URAssignments>
<URActivations/>
<PRAssignments/>
<SSoDConstraints>
<SSoD cardinality="1">
<role name="R1"/>
<role name="R2"/>
</SSoD>
</SSoDConstraints>
<DSoDConstraints>
<DSoD cardinality="1">
<role name="R2"/>
<role name="R3"/>
</DSoD>
</DSoDConstraints>
</RBAC>
51 changes: 51 additions & 0 deletions policies_example/Masood2009P1v2.rbac
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<RBAC name="Masood2009P1v2">
<users>
<user name="U1"/>
<user name="U2"/>
<user name="U4"/>
</users>
<roles>
<role name="R1"/>
<role name="R2"/>
<role name="R3"/>
<role name="R4"/>
</roles>
<permissions/>
<SuConstraints/>
<DuConstraints>
<Du cardinality="2" user="U1"/>
<Du cardinality="2" user="U2"/>
<Du cardinality="2" user="U4"/>
</DuConstraints>
<SrConstraints/>
<DrConstraints>
<Dr cardinality="3" role="R1"/>
<Dr cardinality="1" role="R2"/>
<Dr cardinality="3" role="R3"/>
<Dr cardinality="2" role="R4"/>
</DrConstraints>
<URAssignments>
<AS role="R1" user="U1"/>
<AS role="R1" user="U2"/>
<AS role="R1" user="U4"/>
</URAssignments>
<URActivations/>
<PRAssignments/>
<SSoDConstraints>
<SSoD cardinality="1">
<role name="R1"/>
<role name="R2"/>
</SSoD>
<SSoD cardinality="1">
<role name="R3"/>
<role name="R4"/>
<role name="R1"/>
</SSoD>
<SSoD cardinality="1">
<role name="R3"/>
<role name="R2"/>
</SSoD>
</SSoDConstraints>
<DSoDConstraints/>
</RBAC>
67 changes: 67 additions & 0 deletions policies_example/Masood2009P2.rbac
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<RBAC name="Masood2009P2">
<users>
<user name="U1"/>
<user name="U2"/>
<user name="U3"/>
<user name="U4"/>
</users>
<roles>
<role name="R1"/>
<role name="R2"/>
<role name="R3"/>
<role name="R4"/>
<role name="R5"/>
<role name="R6"/>
</roles>
<permissions/>
<SuConstraints>
</SuConstraints>
<DuConstraints>
<Du cardinality="2" user="U1"/>
<Du cardinality="2" user="U2"/>
</DuConstraints>
<SrConstraints/>
<DrConstraints>
<Dr cardinality="1" role="R1"/>
<Dr cardinality="1" role="R2"/>
<Dr cardinality="1" role="R3"/>
<Dr cardinality="1" role="R4"/>
<Dr cardinality="1" role="R5"/>
<Dr cardinality="1" role="R6"/>
</DrConstraints>
<URAssignments>
<AS role="R1" user="U1"/>
<AS role="R3" user="U1"/>
<AS role="R3" user="U2"/>
<AS role="R4" user="U2"/>
<AS role="R5" user="U1"/>
<AS role="R5" user="U2"/>
<AS role="R6" user="U1"/>
<AS role="R6" user="U2"/>
</URAssignments>
<URActivations/>
<PRAssignments/>
<SSoDConstraints>
<SSoD cardinality="2">
<role name="R1"/>
<role name="R2"/>
<role name="R3"/>
</SSoD>
<SSoD cardinality="1">
<role name="R4"/>
<role name="R5"/>
</SSoD>
</SSoDConstraints>
<DSoDConstraints>
<DSoD cardinality="1">
<role name="R1"/>
<role name="R2"/>
</DSoD>
<DSoD cardinality="2">
<role name="R2"/>
<role name="R3"/>
<role name="R4"/>
</DSoD>
</DSoDConstraints>
</RBAC>
59 changes: 59 additions & 0 deletions policies_example/Masood2009P2v2.rbac
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<RBAC name="Masood2009P2v2">
<users>
<user name="U1"/>
<user name="U2"/>
</users>
<roles>
<role name="R1"/>
<role name="R2"/>
<role name="R3"/>
<role name="R4"/>
<role name="R5"/>
</roles>
<permissions/>
<SuConstraints>
<Su cardinality="1" user="U2"/>
</SuConstraints>
<DuConstraints>
<Du cardinality="2" user="U1"/>
</DuConstraints>
<SrConstraints/>
<DrConstraints>
<Dr cardinality="1" role="R1"/>
<Dr cardinality="1" role="R2"/>
<Dr cardinality="1" role="R3"/>
<Dr cardinality="1" role="R4"/>
<Dr cardinality="1" role="R5"/>
</DrConstraints>
<URAssignments>
<AS role="R1" user="U1"/>
<AS role="R2" user="U1"/>
<AS role="R2" user="U2"/>
<AS role="R4" user="U1"/>
</URAssignments>
<URActivations/>
<PRAssignments/>
<SSoDConstraints>
<SSoD cardinality="2">
<role name="R3"/>
<role name="R1"/>
<role name="R2"/>
</SSoD>
<SSoD cardinality="1">
<role name="R4"/>
<role name="R5"/>
</SSoD>
</SSoDConstraints>
<DSoDConstraints>
<DSoD cardinality="1">
<role name="R1"/>
<role name="R2"/>
</DSoD>
<DSoD cardinality="2">
<role name="R3"/>
<role name="R4"/>
<role name="R2"/>
</DSoD>
</DSoDConstraints>
</RBAC>
Loading

0 comments on commit a02a3c1

Please sign in to comment.