Deny access to sensitive data for other users

This commit is contained in:
Raphael Dannecker 2026-04-15 11:30:41 +02:00
parent 55fbda871c
commit c709bceab9
2 changed files with 3 additions and 1 deletions

View file

@ -208,6 +208,8 @@ EOF
QEMU='qemu:///session'
umask 077
NEWCLONE=0
PERSISTENT=0
LIBVIRTOSINFO="win10"

View file

@ -222,7 +222,7 @@
Description=Create .vminfo.json for VMs
[Service]
Type=simple
ExecStart=/usr/bin/bash -c 'umask 027; /usr/local/bin/vm-vminfo > "{% if localhome %}/home{% else %}/lmn/media{% endif %}/${USER}/.vminfo.json"'
ExecStart=/usr/bin/bash -c 'umask 077; /usr/local/bin/vm-vminfo > "{% if localhome %}/home{% else %}/lmn/media{% endif %}/${USER}/.vminfo.json"'
dest: /etc/systemd/user/vminfo.service
mode: '0644'