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 tB1FdNJx000769 for ; Tue, 1 Dec 2015 10:39:23 -0500 From: Steve Lawrence To: SELinux List Subject: [PATCH 2/2] secilc/docs: Add documentation for neverallowx rules Date: Tue, 1 Dec 2015 10:38:30 -0500 Message-ID: <1448984310-17097-2-git-send-email-slawrence@tresys.com> In-Reply-To: <1448984310-17097-1-git-send-email-slawrence@tresys.com> References: <1448984310-17097-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 | 67 ++++++++++++++++++++++ .../docs/cil_class_and_permission_statements.xml | 2 +- 2 files changed, 68 insertions(+), 1 deletion(-) diff --git a/secilc/docs/cil_access_vector_rules.xml b/secilc/docs/cil_access_vector_rules.xml index 985fc3d..e768558 100644 --- a/secilc/docs/cil_access_vector_rules.xml +++ b/secilc/docs/cil_access_vector_rules.xml @@ -448,4 +448,71 @@ + + neverallowx + Never allow access rights defined for extended permissions. This is a compiler enforced action that will stop compilation until the offending rules are modified. + Note that these rules can be over-ridden by the CIL compiler command line parameter -N or --disable-neverallow flags. + Rule definition: + + Where: + + + + + + + + neverallowx + + + The neverallowx 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. + + + + + + Example: + This example will not compile as type_3 is not allowed to be a source type and ioctl range for the allowx rule: + + + + diff --git a/secilc/docs/cil_class_and_permission_statements.xml b/secilc/docs/cil_class_and_permission_statements.xml index 20c3eb7..f4982e0 100644 --- a/secilc/docs/cil_class_and_permission_statements.xml +++ b/secilc/docs/cil_class_and_permission_statements.xml @@ -508,7 +508,7 @@ permissionx - Defines a named extended permission, which can be used in the allowx, auditallowx, and dontauditx statements. + Defines a named extended permission, which can be used in the allowx, auditallowx, dontauditx, and neverallowx statements. Statement definition: Where: -- 2.4.3