From: Adrian Szyndela Date: Thu, 10 Jan 2019 11:29:12 +0000 (+0100) Subject: policychecker: allow signal rules if send_path is present X-Git-Tag: submit/tizen/20180808.030253~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F197509%2F1;p=platform%2Fcore%2Fsystem%2Fdbus-tools.git policychecker: allow signal rules if send_path is present In case a rule contained send_path, we required it also to have send_destination or send_destination_prefix. However, a rule may be crafted for signals, which are broadcast, therefore they don't have any destination at all. This patch relaxes the requirement a bit, allowing rules having send_path without send_destination under condition that the rule contains send_interface and send_type='signal' attributes. Change-Id: I99ff19271121f726df81e2aed8a124a78f7eadbc --- diff --git a/policychecker/rules.xsl b/policychecker/rules.xsl index d022d9c..0b408a5 100644 --- a/policychecker/rules.xsl +++ b/policychecker/rules.xsl @@ -73,7 +73,7 @@ Unconstrained allows are not allowed in context default and context mandatory: missing send_interface, but send_type="method_call" is present. - Unconstrained allows are not allowed in context default and context mandatory: missing send_destination or send_destination_prefix, but send_path is present. + Unconstrained allows are not allowed in context default and context mandatory: missing send_destination or send_destination_prefix for non-signal, but send_path is present. Unconstrained allows are not allowed in context default and context mandatory: missing receive_sender, but receive_type="method_call" is present. @@ -87,7 +87,7 @@ Unconstrained allows are not allowed in user or group context: missing send_destination or send_destination_prefix, but send_type="method_call" is present. - Unconstrained allows are not allowed in user or group context: missing send_destination or send_destination_prefix, but send_path is present. + Unconstrained allows are not allowed in user or group context: missing send_destination or send_destination_prefix for non-signal, but send_path is present. Unconstrained allows are not allowed in user or group context: missing receive_sender, but receive_type="method_call" is present.