Browse Source

tools/qvm-start-daemon: reduce required permissions to sys-gui itself

Do not require permission to list sys-gui itself just to get keyboard
layout. Listing itself is not sensitive (sys-gui knows it exists), but
it will make other tools request its properties, which may not be
desirable.
Marek Marczykowski-Górecki 4 years ago
parent
commit
9d6b7257c4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      qubesadmin/tools/qvm_start_daemon.py

+ 1 - 1
qubesadmin/tools/qvm_start_daemon.py

@@ -508,7 +508,7 @@ def main(args=None):
     if args.watch and 'guivm-gui-agent' in enabled_services:
         args.set_keyboard_layout = True
     if args.set_keyboard_layout or os.path.exists('/etc/qubes-release'):
-        guivm = args.app.domains[args.app.local_name]
+        guivm = args.app.domains.get_blind(args.app.local_name)
         set_keyboard_layout(guivm)
     launcher = DAEMONLauncher(args.app)
     if args.watch: