Skip to content

Commit fda9b2a

Browse files
committed
Remove internal qubes from being target of ask
For: QubesOS/qubes-issues#1512
1 parent e1b9013 commit fda9b2a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

qrexec/policy/parser.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,6 +1875,14 @@ def collect_targets_for_ask(self, request):
18751875
if source_uuid in targets:
18761876
targets.remove(source_uuid)
18771877

1878+
for unwanted_target in targets.copy():
1879+
if unwanted_target.startswith("@dispvm:"):
1880+
unwanted_target_name = unwanted_target[len("@dispvm:"):]
1881+
else:
1882+
unwanted_target_name = unwanted_target
1883+
if info[unwanted_target_name].get("internal", False):
1884+
targets.remove(unwanted_target)
1885+
18781886
return targets
18791887

18801888

0 commit comments

Comments
 (0)