Thomas Clarke
unread,Feb 10, 2022, 9:20:12 PM2/10/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to qubes...@googlegroups.com
Hi there,
I'm curious to what would be an acceptable method of accessing JSON data in a AppVM from Dom0. I understand the general consensus is it is a risk to do so, but I have some conky's on my desktop which need data from some AppVM's.
My current method is this:
`qvm-run --pass-io --user user --no-autostart an-app-vm 'cat /dev/shm/somedata.json | tr -cd [:print:] | jq -c .' | tr -cd [:print:] | jq -c .`
Here I pipe the contents of `/dev/shm/somedata.json` through `tr -cd [:print:]` to remove all non-printable characters then `jq -c .` which if the input is JSON, will output JSON. I do this from within an AppVM and also in Dom0.
Should I be piping through anything else to minimise risk? Sometimes if I know the data is going to be a certain size I pipe it though `head` also but can't really think of anything else that would be helpful.
Kind regards,
Tonux