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

[WIP] Limit parser target redirect to allowed list #133

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ben-grande
Copy link
Contributor

Limits the parameters target= and default_target= to targets that have no previous deny rule. The previous rule file name and line number is not known and a general information is reported.

Reported-by: unman [email protected]
Fixes: QubesOS/qubes-issues#8227

Limits the parameters target= and default_target= to targets that have
no previous deny rule. The previous rule file name and line number is
not known and a general information is reported.

Reported-by: unman <[email protected]>
Fixes: QubesOS/qubes-issues#8227
Copy link

codecov bot commented Nov 27, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (9670cb5) 75.43% compared to head (ebc6a3c) 75.44%.

Files Patch % Lines
qrexec/policy/parser.py 71.42% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #133      +/-   ##
==========================================
+ Coverage   75.43%   75.44%   +0.01%     
==========================================
  Files          52       52              
  Lines        8874     8882       +8     
==========================================
+ Hits         6694     6701       +7     
- Misses       2180     2181       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ben-grande
Copy link
Contributor Author

Currently fails because collect_targets_for_ask removes valid values such as @adminvm and @dispvm.

Waiting for discussion of

before continuing.

@ben-grande ben-grande changed the title Limit parser target redirect to allowed list [WIP] Limit parser target redirect to allowed list Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect handling of qrexec policy rules
1 participant