Link to Reference policy
PATCH 1/1 Link to Reference policy
Use links to https://github.com/SELinuxProject/refpolicy where useful.
Signed-off-by Topi Miettinen <[email protected]>
--- src/class_permission_statements.md | 13 ++-- src/constraint_statements.md | 18 +++--- src/reference_policy.md | 98 +++++++++++++++--------------- 3 files changed, 70 insertions(+), 59 deletions(-)
src/class_permission_statements.md +9 -4
@@ -9,8 +9,10 @@ For those who write or manager SELinux policy, there is no need to define new objects and their associated permissions as these would be done by those who actually design and/or write object managers. -A list of object classes used by the **Reference Policy** can be found -in the *./policy/flask/security\_classes* file. +A list of object classes used by the [**Reference +Policy**](https://github.com/SELinuxProject/refpolicy) can be found in the +[*./policy/flask/security\_classes*](https://github.com/SELinuxProject/refpolicy/tree/master/policy/flask/security_classes) +file. There are two variants of the *class* statement for writing policy:
@@ -72,8 +74,11 @@ Permissions can be defined within policy in two ways: declared for a specific object class only (i.e. the permission is not inherited by any other object class). -A list of classes and their permissions used by the **Reference Policy** -can be found in the *./policy/flask/access_vectors* file. +A list of classes and their permissions used by the [**Reference +Policy**](https://github.com/SELinuxProject/refpolicy) can be found in +the +[*./policy/flask/access\_vectors*](https://github.com/SELinuxProject/refpolicy/tree/master/policy/flask/access_vectors) +file. ## *common*
src/constraint_statements.md +11 -7
@@ -80,8 +80,10 @@ Conditional Policy Statements **Examples:** -These examples have been taken from the **Reference Policy** source -*./policy/constraints* file. +These examples have been taken from the [**Reference +Policy**](https://github.com/SELinuxProject/refpolicy) source +[*./policy/constraints*](https://github.com/SELinuxProject/refpolicy/tree/master/policy/constraints) +file. ``` # This constrain statement is the "SELinux process identity
@@ -327,9 +329,11 @@ Conditional Policy Statements **Example:** -This example has been taken from the **Reference Policy** source -*./policy/mls* constraints file. These are built into the policy at build -time and add constraints to many of the object classes. +This example has been taken from the [**Reference +Policy**](https://github.com/SELinuxProject/refpolicy) source +[**./policy/mls*](https://github.com/SELinuxProject/refpolicy/tree/master/policy/mls) +constraints file. These are built into the policy at build time and +add constraints to many of the object classes. ``` # The MLS Reference Policy mlsconstrain statement for searching
@@ -439,8 +443,8 @@ Conditional Policy Statements **Example:** -This example has been taken from the **Reference Policy** source -*./policy/mls* file. +This example has been taken from the [**Reference Policy**](https://github.com/SELinuxProject/refpolicy) source +[*./policy/mls*](https://github.com/SELinuxProject/refpolicy/tree/master/policy/mls) file. ``` # The MLS Reference Policy mlsvalidatetrans statement for
src/reference_policy.md +50 -48
285 lines not on this page · raw message
Signature · 1 line
2.28.0
Paul Moore
maintainerQuoted 9 lines · Topi Miettinen
Use links to https://github.com/SELinuxProject/refpolicy where useful.
Signed-off-by Topi Miettinen <[email protected]>--- src/class_permission_statements.md | 13 ++-- src/constraint_statements.md | 18 +++--- src/reference_policy.md | 98 +++++++++++++++--------------- 3 files changed, 70 insertions(+), 59 deletions(-)
I apologize for the delay, I lost track of this patch; it's now merged.
While I think we need to be careful not to clutter the text with too many external links, I think this is a nice improvement - thanks Topi!
Signature · 2 lines
paul moore www.paul-moore.com