Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistent qrexec policy daemon #3868

Closed
DemiMarie opened this issue Apr 29, 2018 · 4 comments
Closed

Persistent qrexec policy daemon #3868

DemiMarie opened this issue Apr 29, 2018 · 4 comments
Labels
R: duplicate Resolution: Another issue exists that is very similar to or subsumes this one.

Comments

@DemiMarie
Copy link

Qubes OS version:

R4.0

Affected component(s):

qubes-core-admin


Steps to reproduce the behavior:

  1. Run qvm-ls
  2. Note the time it takes

Expected behavior:

qvm-ls is fast

Actual behavior:

qvm-ls is slow

General notes:

The problem seems to be that every qrexec call starts a new Python process. I propose that this be replaced by a persistent daemon. The daemon will listen on a Unix domain socket and maintain an in-memory cache of all qrexec policy files. inotify will be used to notify the daemon when these change. Additionally, whenever the machine is awake, the daemon will reload its configuration every minute or so, to ensure that it stays up-to-date.


Related issues:

@marmarek
Copy link
Member

Do you mean qvm-ls in dom0 or in some VM (with appropriate permissons for qrexec calls)? In case of dom0, it already use local socket and qrexec policy is not involved at all. But in case of VM, your diagnosis is correct.

Generally:

@andrewdavidwong
Copy link
Member

Duplicate of #3293

@andrewdavidwong andrewdavidwong marked this as a duplicate of #3293 Apr 30, 2018
@andrewdavidwong andrewdavidwong added the R: duplicate Resolution: Another issue exists that is very similar to or subsumes this one. label Apr 30, 2018
@DemiMarie
Copy link
Author

DemiMarie commented Apr 30, 2018 via email

@marmarek
Copy link
Member

Ok, but in case of dom0, qrexec policy is not involved at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R: duplicate Resolution: Another issue exists that is very similar to or subsumes this one.
Projects
None yet
Development

No branches or pull requests

3 participants