See subject line - I'd like to remap the `/home/user` bit to `/tmp` to
enforce cleanup ...
Thanks for any pointers.
Joh
See subject line - I'd like to remap the `/home/user` bit to `/tmp` to
enforce cleanup ...
Thanks for any pointers.
Joh
'Johannes Graumann' via qubes-users:
See subject line - I'd like to remap the `/home/user` bit to `/tmp` to
enforce cleanup ...
Not user configurable as far as I know. Think you'd have to identify the VM component responsible for receiving a qvm-moved/copied file, then edit the source?
See subject line - I'd like to remap the `/home/user` bit to `/tmp` to
enforce cleanup ...Thanks for any pointers.
Joh
In /rw/config/rc.local, you can create /tmp/QubesIncoming. Then replace ~/QubesIncoming with a symlink to /tmp/QubesIncoming
Good strategy, I'll try that. Thank you.
This *.sls works nicely:
configure `rc.local` to remove any present `QubesIncoming`:
file.replace:
- name: /rw/config/rc.local
- pattern: '^rm -rf /home/user/QubesIncoming$'
- repl: 'rm -rf /home/user/QubesIncoming'
- append_if_not_found: True
configure `rc.local` to create `/tmp/QubesIncoming`:
file.replace:
- name: /rw/config/rc.local
- pattern: '^install -d -o user -g user -m 770 /tmp/QubesIncoming$'
- repl: 'install -d -o user -g user -m 770 /tmp/QubesIncoming'
- append_if_not_found: True
configure `rc.local` to link `/tmp/QubesIncoming` to $HOME:
file.replace:
- name: /rw/config/rc.local
- pattern: '^ln -s /tmp/QubesIncoming /home/user/QubesIncoming$'
- repl: 'ln -s /tmp/QubesIncoming /home/user/QubesIncoming'
- append_if_not_found: True
configure `rc.local` to properly chown the link:
file.replace:
- name: /rw/config/rc.local
- pattern: '^chown -h user:user /home/user/QubesIncoming$'
- repl: 'chown -h user:user /home/user/QubesIncoming'
- append_if_not_found: True
It generates this code block in `/rw/config/rc.local`:
rm -rf /home/user/QubesIncoming
install -d -o user -g user -m 770 /tmp/QubesIncoming
ln -s /tmp/QubesIncoming /home/user/QubesIncoming
chown -h user:user /home/user/QubesIncoming