Converting to github markdown allows for easier integration with the SELinux project wiki and viewing of documentation directly on github without creating PDFs or reading through DocBook XML. The conversion of DocBook to github markdown would not format tables or keyword links properly. By maintaining the documentation in github markdown in the repository, the content is well formatted with a table of contents when viewing in the github wiki or in the repository. The migration from DocBook to github markdown was done using Pandoc and manual fixups. Mappings of CIL keywords to headings that were lost in the DocBook conversion were added back. An introduction and design philosphy was also pulled from the SELinux project wiki to provide more cohesion to the current documentation. Running make will now convert the github markdown into PDF and HTML. Signed-off-by: Yuli Khodorkovskiy <ykhodorkovskiy@tresys.com>
3.1 KiB
Policy Configuration Statements
mls
Defines whether the policy is built as an MLS or non-MLS policy by the CIL compiler. There MUST only be one mls
entry in the policy otherwise the compiler will exit with an error.
Note that this can be over-ridden by the CIL compiler command line parameter -M true|false
or --mls true|false
flags.
Statement definition:
(mls boolean)
Where:
|
The |
|
Set to either |
Example:
(mls true)
handleunknown
Defines how the kernel will handle unknown object classes and permissions when loading the policy. There MUST only be one handleunknown
entry in the policy otherwise the compiler will exit with an error.
Note that this can be over-ridden by the CIL compiler command line parameter -U
or --handle-unknown
flags.
Statement definition:
(handleunknown action)
Where:
|
The |
|
A keyword of either
|
Example:
This will allow unknown classes / permissions to be present in the policy:
(handleunknown allow)
policycap
Allow policy capabilities to be enabled via policy. These should be declared in the global namespace and be valid policy capabilities as they are checked against those known in libsepol by the CIL compiler.
Statement definition:
(policycap policycap_id)
Where:
|
The |
|
The |
Example:
These set two valid policy capabilities:
; Enable networking controls.
(policycap network_peer_controls)
; Enable open permission check.
(policycap open_perms)