-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pre-select qvm-copy/move destination VM in dom0 confirmation window when it's the only possible option #5510
Comments
qvm-copy tool intentionally leave target selection to (trusted) dom0, instead of (untrusted) source domain. You can see (quite long) discussion about it here: #910 |
Hi @marmarek , thanks for your quick reply. I'm still confused. When I use
then a gtk window opens in dom0, where I have to type the destination VM name again - vm_name is not filled in automatically. To be clear, I do not want to set up fully automated copying - I always want to confirm in dom0, but I do not want to have to specify the destination name again. If I remember correctly, in qubes 3.2 this was a thing (dom0 gtk window would ask for confirmation to "copy something from vm1 to vm2"). |
Yes, that's correct. As I've said, you need to modify qrexec policy to have also pre-filled value and/or automatic accept for selected targets. |
Example policy entry could look like this:
|
Ok - So the correct file name is But when I put |
ok gained one more insight... When I run
So it seems to me that there is a Bug of some sort that the destination VM is not automatically filled into the confirmation window in dom0 when it is given like PS: If I specify |
As a hacky workaround, the following works:
Is there a more generic way? |
I interpret this to mean that this issue should be classified as a UX enhancement for the case in which there is only one possible option to be selected in the dom0 confirmation window. In such a scenario, it makes sense for the only possible option to be pre-selected, since the user will have to selected it anyway (or abort). Might as well save the user a couple clicks. |
This is intended behavior. Generally the idea is to take away call destination control from the source vm and give it to the user and the policy. This avoids attacks when compromised source vm silently replace the destination and user don't notice a slight difference in the confirmation prompt. Thing like executing We have considered pre-selecting target if it's the only available on the list, but decided against, to have consistent policy behavior. Instead, you can use In practice, it should be quite safe to specify allow action for |
I see. I think for scripted cases (in my case I launch my scripts from dom0) using
👍 for that, especially when specifying Thank you for your helpful input! This issue can be closed from my side. |
@marmarek wrote in #7720 (comment):
Therefore, we are reopening this issue. |
I've been searching around reading, amongst others, this #3529 but can't find the solution. How do I specify the destination VM in
qvm-copy
/qvm-move
when copying / moving files from domU to domU?Qubes Version
4.0.2
Steps to reproduce the behavior:
-> gives me an error file "vm2" not found
What DOES work is:
-> A dialogue box opens where I have to type the destination VM manually (takes time / not nice for scripting).
Expected behavior:
When I run:
A dialogue box opens asking me to confirm copying files to
vm2
, where I don't have to type the destination VM.Hope I'm not missing something trivial here but just can't figure it out..
The text was updated successfully, but these errors were encountered: