-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add resource transition functionality (#85)
The resource_transition function keyword is now available for use.
- Loading branch information
1 parent
f06bd61
commit a3d2424
Showing
7 changed files
with
340 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
resource foo { | ||
resource_transition(this, domain, bar, [quack]); | ||
|
||
resource_transition(aaa, zap, bar, [file]); | ||
resource_transition(foo, bbb, bar, [file]); | ||
resource_transition(foo, zap, ccc, [file]); | ||
|
||
// Policies must include at least one av rule | ||
allow(domain, foo, file, [read]); | ||
} | ||
|
||
resource bar {} | ||
|
||
domain zap { | ||
resource_transition(foo, this, bar, [file dir]); | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
resource foo { | ||
resource_transition(this, domain, bar, [file dir]); | ||
|
||
// Policies must include at least one av rule | ||
allow(domain, foo, file, [read]); | ||
} | ||
|
||
resource bar {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters