-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Signed-off-by: Ben Grande <ben.grand...@gmail.com> - --- qrexec/policy/parser.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/qrexec/policy/parser.py b/qrexec/policy/parser.py index ab50f9e..143f77f 100644 - --- a/qrexec/policy/parser.py +++ b/qrexec/policy/parser.py @@ -1956,15 +1956,14 @@ class ToposortMixIn: if "/" in key and ( not key.startswith("include/") or key.count("/") > 1 ): - - # TODO make this an error, since we shouldn't accept this anyway - - logging.warning( - - "ignoring path %r included in %s on line %d; " - - "expect problems with import order", - - included_path, + raise PolicySyntaxError( filepath, lineno, + "invalid path {}, only paths inside the directories {} and " + "{}/include are considered".format( + included_path, POLICYPATH, POLICYPATH + ), ) - - return self.included_paths[key].add(included_path) - -- Benjamin Grande <ben.grand...@gmail.com> -----BEGIN PGP SIGNATURE----- iNUEARYKAH0WIQRklnEdsUUe50UmvUUbcxS/DMyWhwUCZHDlWV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0NjQ5 NjcxMURCMTQ1MUVFNzQ1MjZCRDQ1MUI3MzE0QkYwQ0NDOTY4NwAKCRAbcxS/DMyW h/cRAP907orcsOXIb/oKiGsFw9Yi/S8y7dqNHYTJQqyDtqJliAD/bh55grJlnhxL rrvakIdwHf9SOmgXyt+56pS7XOH6Kgs= =FjoJ -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "qubes-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-devel/ZHDlWg8DnnsSsSIR%40personal-mutt.