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

Small fixes #187

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Small fixes #187

wants to merge 8 commits into from

Conversation

DemiMarie
Copy link
Contributor

These are all minor fixes that can be backported.

This checks that the RPC multiplexer only allows calls with 2 or 4
arguments and sets environment variables $QREXEC_REQUESTED_TARGET_TYPE,
$QREXEC_REQUESTED_TARGET, and $QREXEC_REQUESTED_TARGET_KEYWORD properly.
Since it only affects the tests, it can safely be backported to R4.2.
No other functional change.
Copy link

codecov bot commented Jan 18, 2025

Codecov Report

Attention: Patch coverage is 83.56164% with 12 lines in your changes missing coverage. Please review.

Project coverage is 79.14%. Comparing base (b40d3da) to head (5f79dd4).

Files with missing lines Patch % Lines
libqrexec/buffer.c 0.00% 5 Missing ⚠️
qrexec/client.py 33.33% 4 Missing ⚠️
qrexec/tests/socket/agent.py 93.54% 2 Missing ⚠️
daemon/qrexec-client.c 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #187      +/-   ##
==========================================
- Coverage   79.17%   79.14%   -0.03%     
==========================================
  Files          54       54              
  Lines        9953    10002      +49     
==========================================
+ Hits         7880     7916      +36     
- Misses       2073     2086      +13     

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

This would result in malformed commands being generated.
This avoids option injection if an invalid VM name starting with '-' is
passed.
These should never happen unless out of memory.
USB forwarding requires this, but there were no unit tests for it, so a
buggy patch that broke it was not noticed until openQA tested USB
forwarding.
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.

1 participant