Skip to content

Inconsistency in RPC policy with action "ask" and @adminvm/dom0 #9870

@HW42

Description

@HW42

Qubes OS release

Qubes OS 4.2, Qubes OS 4.3

Brief summary

When parsing qrexec policy dom0 is translated to @adminvm/AdminVM.

But when evaluating an ask action AdminVM is translated to dom0 (regardless of if it was originally specified as dom0 or @adminvm.

This inconsistency leads to the problem that you can't redirect a request to @default to dom0 with an ask policy. dom0/@adminvm in target= will end up as AdminVM in targets_for_ask, but this is incompatible with a default_target = "dom0".

Steps to reproduce

No response

Expected behavior

No response

Actual behavior

No response

Additional information

This is easy to fix by resolving AdminVM in targets_for_ask to dom0. But I'm not sure if that's the proper fix. Given the comments there it sounds like the original intention was to get rid of dom0 at some point. So if the proper fix to make things work without translating @adminvm to dom0 in the process?

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions