qubes.FeaturesRequest 298 B

12345678910111213
  1. #!/usr/bin/env python2
  2. import os
  3. import qubes
  4. PREFIX = '/features-request/'
  5. app = qubes.Qubes()
  6. vm = app.domains[os.environ['QREXEC_REMOTE_DOMAIN']]
  7. vm.fire_event('features-request',
  8. untrusted_features={key[len(PREFIX):]: vm.qdb.read(key)
  9. for key in vm.qdb.list(PREFIX)})
  10. app.save()