forked from QubesOS/qubes-app-linux-usb-proxy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix granting/revoking qubes.USB service access
There were a couple issues: 1. Policy file modification wasn't done under lock. While the current version of qubesd use cooperative async code (so, only one function will execute at a time), don't make such assumptions for the future. 2. Fix race condition when two devices are added at the same time (one could remove the whole policy file, instead of just its own line, causing the other attach to fail). 3. Fix revoking qubes.USB access if it wasn't the only line in the policy file (code expected "allow" action, instead of "allow,user=root"). Fixes QubesOS/qubes-issues#5337 Fixes QubesOS/qubes-issues#5381
- Loading branch information
Showing
2 changed files
with
69 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters