From 7866cf537e7c37ed89a00a5c0c155f3b6fd363c1 Mon Sep 17 00:00:00 2001 From: Adrian Szyndela Date: Tue, 3 Sep 2019 11:59:41 +0200 Subject: [PATCH] policychecker: is allow own for me present? This adds two checks which can help with detecting config files that have no "allow own" or "check own" or "allow own_prefix" or "check own_prefix" for services the config file is for. This works by adding two checking rules: 1. a rule that - for a config file containing policy rule "deny own" - warns if the file does not contain corresponding "allow own" or "check own" policy rule with the same name. 2. a rule that does the same, but for 'own_prefix' instead of 'own'. Change-Id: I758974724ffc5d5af821c44f4737ed87c9f63f59 --- policychecker/rules.xsl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/policychecker/rules.xsl b/policychecker/rules.xsl index 7f20b0f..bc306d9 100644 --- a/policychecker/rules.xsl +++ b/policychecker/rules.xsl @@ -64,6 +64,14 @@ For each allow own_prefix you must add a deny own_prefix in default context. + + + "deny own" present, but no "allow own" or "check own" for that name. + + + + "deny own_prefix" present, but no "allow own_prefix" or "check own_prefix" for that name. + -- 2.34.1