From patchwork Wed Sep 9 13:30:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Haines X-Patchwork-Id: 11834347 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C99E716BC for ; Mon, 12 Oct 2020 22:19:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 85AE6206DC for ; Mon, 12 Oct 2020 22:19:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=btinternet.com header.i=@btinternet.com header.b="DnrJ2KSI" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388626AbgJLWTK (ORCPT ); Mon, 12 Oct 2020 18:19:10 -0400 Received: from mailomta31-re.btinternet.com ([213.120.69.124]:14194 "EHLO re-prd-fep-044.btinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388510AbgJLWSu (ORCPT ); Mon, 12 Oct 2020 18:18:50 -0400 Received: from re-prd-rgout-003.btmx-prd.synchronoss.net ([10.2.54.6]) by re-prd-fep-044.btinternet.com with ESMTP id <20200909133046.TZMX21348.re-prd-fep-044.btinternet.com@re-prd-rgout-003.btmx-prd.synchronoss.net>; Wed, 9 Sep 2020 14:30:46 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btinternet.com; s=btmx201904; t=1599658246; bh=lPFLzFsdNoO8Xkp6GfwuHFL3gAvxNJEQJjS5qMIqtwE=; h=From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References:MIME-Version; b=DnrJ2KSIjqGyROoS8qs3eSoDf5xoMJuRPDUs9aeDDg6Ct9ERP9AzcWx79GzgcefPiFSq/rXpv4DWOq9CAkYjknX7ODWhHGi253QCF2r63zC9Y9AH0IDQSP447q4LPHsZojUcXDultxFOzPm9sLI7rcNOvklKGHkXq1BjoqdluX/SoSucmOpXm5eZN4fZ2iKkJUxa+AQFiBRy/qvcOJlVesApVJkUFngIs8T91L8Kp7vlXRzZx/7qBa/T9m3QyxwWTkPZcw5WKMVoNNNKK0h0WvU8WTgvQE6uaLbs6IeCKg/1teC3eHH+9iC5SV0TrEQxXPv+MFR0Co9SWOz2w7OfnA== Authentication-Results: btinternet.com; none X-Originating-IP: [86.154.154.133] X-OWM-Source-IP: 86.154.154.133 (GB) X-OWM-Env-Sender: richard_c_haines@btinternet.com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeduiedrudehhedgiedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecunecujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeftihgthhgrrhguucfjrghinhgvshcuoehrihgthhgrrhgupggtpghhrghinhgvshessghtihhnthgvrhhnvghtrdgtohhmqeenucggtffrrghtthgvrhhnpeeutddtleelheeugefgiefhiedtheeukeffveeitdffgeffieeugeeljeegvefgieenucfkphepkeeirdduheegrdduheegrddufeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplhhotggrlhhhohhsthdrlhhotggrlhguohhmrghinhdpihhnvghtpeekiedrudehgedrudehgedrudeffedpmhgrihhlfhhrohhmpeeorhhitghhrghruggptggphhgrihhnvghssegsthhinhhtvghrnhgvthdrtghomheqpdhrtghpthhtohepoehprghulhesphgruhhlqdhmohhorhgvrdgtohhmqedprhgtphhtthhopeeorhhitghhrghruggptggphhgrihhnvghssegsthhinhhtvghrnhgvthdrtghomhequcfqtfevrffvpehrfhgtkedvvdenrhhitghhrghruggptggphhgrihhnvghssegsthhinhhtvghrnhgvthdrtghomhdprhgtphhtthhopeeoshgvlhhinhhugiesvhhgvghrrdhkvghrnhgvlhdrohhrgheq X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean X-SNCR-hdrdom: btinternet.com Received: from localhost.localdomain (86.154.154.133) by re-prd-rgout-003.btmx-prd.synchronoss.net (5.8.340) (authenticated as richard_c_haines@btinternet.com) id 5ED9C2FD10134DE9; Wed, 9 Sep 2020 14:30:46 +0100 From: Richard Haines To: paul@paul-moore.com, selinux@vger.kernel.org Cc: Richard Haines Subject: [PATCH 10/22] sid_statement: Convert to markdown Date: Wed, 9 Sep 2020 14:30:27 +0100 Message-Id: <20200909133039.44498-11-richard_c_haines@btinternet.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200909133039.44498-1-richard_c_haines@btinternet.com> References: <20200909133039.44498-1-richard_c_haines@btinternet.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: selinux@vger.kernel.org Signed-off-by: Richard Haines --- src/sid_statement.md | 119 ++++++++++++++++--------------------------- 1 file changed, 43 insertions(+), 76 deletions(-) diff --git a/src/sid_statement.md b/src/sid_statement.md index 07feb2c..7d6bfcd 100644 --- a/src/sid_statement.md +++ b/src/sid_statement.md @@ -1,5 +1,8 @@ # Security ID (SID) Statement +- [*sid*](#sid) +- [*sid context*](#sid-context) + There are two *sid* statements, the first one declares the actual *sid* identifier and is defined at the start of a policy source file. The second statement is used to associate an initial security context to the @@ -20,45 +23,27 @@ sid sid_id **Where:** - - - - - - - - - - - -
sidThe sid keyword.
sid_idThe sid identifier.
+*sid* + +The *sid* keyword. + +*sid_id* + +The *sid* identifier. **The statement is valid in:** - - - - - - - - - - - - - - - - - - - - - - - -
Monolithic PolicyBase PolicyModule Policy
YesYesNo
Conditional Policy if Statementoptional Statementrequire Statement
NoNoNo
+Policy Type + +| Monolithic Policy | Base Policy | Module Policy | +| ----------------------- | ----------------------- | ----------------------- | +| Yes | Yes | No | + +Conditional Policy Statements + +| *if* Statement | *optional* Statement | *require* Statement | +| ----------------------- | ----------------------- | ----------------------- | +| No | No | No | **Example:** @@ -86,49 +71,31 @@ sid sid_id context **Where:** - - - - - - - - - - - - - - - -
sidThe sid keyword.
sid_idThe previously declared sid identifier.
contextThe initial security context.
+*sid* + +The *sid* keyword. + +*sid_id* + +The previously declared *sid* identifier. + +*context* + +The initial security context. **The statement is valid in:** - - - - - - - - - - - - - - - - - - - - - - - -
Monolithic PolicyBase PolicyModule Policy
YesYesNo
Conditional Policy if Statementoptional Statementrequire Statement
NoNoNo
+Policy Type + +| Monolithic Policy | Base Policy | Module Policy | +| ----------------------- | ----------------------- | ----------------------- | +| Yes | Yes | No | + +Conditional Policy Statements + +| *if* Statement | *optional* Statement | *require* Statement | +| ----------------------- | ----------------------- | ----------------------- | +| No | No | No | **Examples:**