Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id t7SJ0CEW032265 for ; Fri, 28 Aug 2015 15:00:14 -0400 From: Steve Lawrence To: SELinux List Subject: [PATCH 3/3] secilc: Add documentation for allowx, auditallowx, dontauditx, and permissionx Date: Fri, 28 Aug 2015 14:59:46 -0400 Message-ID: <1440788386-17637-4-git-send-email-slawrence@tresys.com> In-Reply-To: <1440788386-17637-1-git-send-email-slawrence@tresys.com> References: <1440788386-17637-1-git-send-email-slawrence@tresys.com> MIME-Version: 1.0 Content-Type: text/plain List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: Signed-off-by: Steve Lawrence --- secilc/docs/cil_access_vector_rules.xml | 172 +++++++++++++++++++++ .../docs/cil_class_and_permission_statements.xml | 95 ++++++++++++ secilc/docs/cil_container_statements.xml | 23 ++- 3 files changed, 284 insertions(+), 6 deletions(-) diff --git a/secilc/docs/cil_access_vector_rules.xml b/secilc/docs/cil_access_vector_rules.xml index d3ce095..c524e7c 100644 --- a/secilc/docs/cil_access_vector_rules.xml +++ b/secilc/docs/cil_access_vector_rules.xml @@ -275,5 +275,177 @@ )]]> + + + allowx + Specifies the access allowed between a source and target type using extended permissions. Unlike the allow statement, the statements validatetrans, mlsvalidatetrans, constrain, and mlsconstrain do not limit accesses granted by allowx. + Rule definition: + + Where: + + + + + + + + allowx + + + The allowx keyword. + + + + + source_id + + + A single previously defined source type, typealias, or typeattribute identifier. + + + + + target_id + + + A single previously defined target type, typealias, or typeattribute identifier. + The self keyword may be used instead to signify that source and target are the same. + + + + + permissionx_id + + + A single named or anonymous permissionx. + + + + + + Examples: + These examples show a selection of possible permutations of allowx rules: + + + + + + + auditallowx + Audit the access rights defined if there is a valid allowx rule. It does NOT allow access, it only audits the event. + Rule definition: + + Where: + + + + + + + + auditallowx + + + The auditallowx keyword. + + + + + source_id + + + A single previously defined source type, typealias or typeattribute identifier. + + + + + target_id + + + A single previously defined target type, typealias or typeattribute identifier. + The self keyword may be used instead to signify that source and target are the same. + + + + + permissionx_id + + + A single named or anonymous permissionx. + + + + + + Examples: + This example will log an audit event whenever the corresponding allowx rule grants access to the specified extended permissions: + + + + + + dontauditx + Do not audit the access rights defined when access denied. This stops excessive log entries for known events. + Note that these rules can be omitted by the CIL compiler command line parameter -D or --disable-dontaudit flags. + Rule definition: + + Where: + + + + + + + + dontauditx + + + The dontauditx keyword. + + + + + source_id + + + A single previously defined source type, typealias or typeattribute identifier. + + + + + target_id + + + A single previously defined target type, typealias or typeattribute identifier. + The self keyword may be used instead to signify that source and target are the same. + + + + + permissionx_id + + + A single named or anonymous permissionx. + + + + + + Examples: + This example will not audit the denied access: + + + diff --git a/secilc/docs/cil_class_and_permission_statements.xml b/secilc/docs/cil_class_and_permission_statements.xml index 25929b1..4801124 100644 --- a/secilc/docs/cil_class_and_permission_statements.xml +++ b/secilc/docs/cil_class_and_permission_statements.xml @@ -490,4 +490,99 @@ + + permissionx + Defines a named extended permission, which can be used in the allowx, auditallowx, and dontauditx statements. + Statement definition: + + Where: + + + + + + + + permissionx + + + The permissionx keyword. + + + + + kind + + + A keyword specifying how to interpret the extended permission values. Must be one of: + + + + + + + + + kind + + + description + + + + + + + ioctl + + + Permissions define a whitelist of ioctl values. Permission values must range from 0x0000 to 0xFFFF, inclusive. + + + + + + + + + + class_id + + + A single previously declared class identifier. + + + + + permission + + + One or more numeric values, specified in decimal, or hexadecimal if prefixed with 0x, or octal if prefixed with 0. Values are interpreted based on the value of kind. + + + + + expr + + + An expression, with valid operators and syntax: + (range (permission ...) (permission ...)) + (and (permission ...) (permission ...)) + (or (permission ...) (permission ...)) + (xor (permission ...) (permission ...)) + (not (permission ...)) + (all) + + + + + Examples: + + + + diff --git a/secilc/docs/cil_container_statements.xml b/secilc/docs/cil_container_statements.xml index 6bdd1ab..3e3d2f6 100644 --- a/secilc/docs/cil_container_statements.xml +++ b/secilc/docs/cil_container_statements.xml @@ -241,19 +241,30 @@ allow + allowx + + auditallow + auditallowx + + + + booleanif dontaudit - - + + dontauditx + typepermissive + + rangetransition @@ -263,11 +274,11 @@ roleallow - - roleattribute + + roletransition @@ -277,11 +288,11 @@ typealias - - typeattribute + + typechange -- 2.4.3