Marek Marczykowski-Górecki
50412a8a8f
qrexec: provide common function for handling service call
...
Reduce code duplication by moving parsing of "QUBESRPC" magic command to
one place.
Call qubes-rpc-multiplexer directly with execve(), to avoid string
expansions in its parameters.
6 years ago
Marek Marczykowski-Górecki
410ad3d25f
qrexec-lib: convert tabs to spaces
...
- Fix compile error on gcc 6 (-Werror=misleading-indentation)
- Follow coding style: https://www.qubes-os.org/doc/coding-style/
8 years ago
Marek Marczykowski-Górecki
6a44eaeb09
libqrexec-utils: bring back buffered write helpers
...
It is required to prevent deadlocks in single-threaded select-based IO
programs (namely: qrexec). POSIX API doesn't support checking how much
can be written to pipe/socket without blocking, so to prevent blocking
application must use O_NONBLOCK mode, and somehow deal with non-written
data (buffer it).
QubesOS/qubes-issues#1347
9 years ago
Marek Marczykowski-Górecki
680c36934e
Fix compile warnings
10 years ago
Marek Marczykowski-Górecki
020f341f98
qrexec-utils: add read_vchan_all and write_vchan_all
...
Similar to read_all and write_all.
10 years ago
Marek Marczykowski-Górecki
aa31c67e24
qrexec-utils: disable write-stdin (buffered writes) compilation
...
Not compatible with new qrexec protocol yet. To be done.
10 years ago
Marek Marczykowski
a91a8c8312
Update for new vchan API, remove code not needed anymore
...
Remove some vchan wrappers, which are not necessary now.
10 years ago
Marek Marczykowski-Górecki
b8b4e105c0
qrexec-lib: return unsigned where only non-negative value is returned
10 years ago
Vincent Penquerc'h
03c9cb1388
Add a few consts where appropriate
10 years ago
Marek Marczykowski-Górecki
113826aa1a
qrexec-lib: use registered callbacks
...
...instead of exported symbols of certain name. This is first step to
use change it to shared libraries.
10 years ago
Vincent Penquerc'h
3a39c65e3e
linux-utils: misc const/prototype fixups
11 years ago
Marek Marczykowski
42e133b753
Qrexec common code, qubes.Filecopy common code, udev scripts
11 years ago