Skip to content

Dom0 (internal) tool to copy a file into specific place in a VM #10454

@marmarek

Description

@marmarek

While at this... Would it be possible to use a different path other than /home please? Because that may introduce a risk in context of user-sysmaint-split (and maybe also in context of home noexec).

This is the path where qvm-copy puts the file, and copy source (intentionally) has no influence on the directory. While dom0 could use a different mechanism to send the file (even naive qvm-run ... 'cat > ...'), that would likely lead to other issues.

If there was a dom0 wrapper...

qvm-copy-to-path dest_vmname dom0-source-file-or-folder vm-destination-file-or-folder

Then qubes-dist-upgrade could conveniently use it to install the file to a more appropriate location such as in /usr/bin. That would be easier to read than the qvm-run ... 'cat > ...' syntax.

A dom0 tool qvm-copy-to-path would be nice to have anyhow for all sorts of system administration tasks. Or at least as an internal tool if not user facing.

Originally posted by @adrelanos in #10437

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: coreThis issue pertains to a Qubes core component.P: defaultPriority: default. Default priority for new issues, to be replaced given sufficient information.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions