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

Support wait-for-session in qrexec-client #41

Merged
merged 3 commits into from
Mar 28, 2020

Conversation

pwmarcz
Copy link
Contributor

@pwmarcz pwmarcz commented Mar 25, 2020

No description provided.

@codecov
Copy link

codecov bot commented Mar 25, 2020

Codecov Report

Merging #41 into master will increase coverage by 0.44%.
The diff coverage is 64.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #41      +/-   ##
==========================================
+ Coverage   73.70%   74.14%   +0.44%     
==========================================
  Files          41       41              
  Lines        6221     6300      +79     
  Branches      459      474      +15     
==========================================
+ Hits         4585     4671      +86     
+ Misses       1394     1375      -19     
- Partials      242      254      +12     
Impacted Files Coverage Δ
libqrexec/libqrexec-utils.h 66.66% <ø> (ø)
agent/qrexec-agent.c 40.00% <56.52%> (+3.74%) ⬆️
libqrexec/exec.c 57.59% <57.60%> (-1.68%) ⬇️
daemon/qrexec-client.c 56.25% <59.37%> (+0.29%) ⬆️
qrexec/tests/socket/agent.py 98.85% <100.00%> (+0.03%) ⬆️
qrexec/tests/socket/daemon.py 99.26% <100.00%> (+0.02%) ⬆️
libqrexec/write-stdin.c 46.34% <0.00%> (+2.43%) ⬆️
libqrexec/remote.c 59.59% <0.00%> (+3.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d304038...7f6d27b. Read the comment docs.

libqrexec/exec.c Outdated
goto err;
}
} else {
cmd->service_name = strdup(cmd->service_descriptor);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cmd->service_name = strdup(cmd->service_descriptor);
cmd->service_name = strndup(cmd->service_descriptor, end - start);

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll do strndup(start, end - start), same as for cmd->service_descriptor.

Clean up qrexec_parsed_command to make the code simpler: allocate
more strings and store NUL-terminated parts.
Add qubes.WaitForSession to dom0, to wait until qubes-guid becomes
available for a given domain.

This will be useful for RPC calls that require GUI (currently
qubes.WindowIconUpdater).
@marmarek marmarek merged commit 079c2f8 into QubesOS:master Mar 28, 2020
pwmarcz added a commit to pwmarcz/qubes-gui-daemon that referenced this pull request Mar 31, 2020
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.

2 participants