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/
2016-06-02 02:32:46 +02:00
Marek Marczykowski-Górecki
680c36934e
Fix compile warnings
2014-11-19 15:10:59 +01:00
Marek Marczykowski-Górecki
020f341f98
qrexec-utils: add read_vchan_all and write_vchan_all
...
Similar to read_all and write_all.
2014-11-19 15:10:59 +01:00
Marek Marczykowski
08f6f18af7
qrexec-lib: prevent deadlock on vchan
...
It can happen that we already cleared libvchan_fd pending state via
libvchan_wait, but data arrived later. This is especially true just
after connection, when client send unsolicited notification to server,
which can confuse it with some requested notification.
2014-11-19 15:10:58 +01:00
Marek Marczykowski
a91a8c8312
Update for new vchan API, remove code not needed anymore
...
Remove some vchan wrappers, which are not necessary now.
2014-11-19 15:10:58 +01:00
Davíð Steinn Geirsson
bc75b6559b
Use xenstore.h when xen >= 4.2
2014-07-23 04:32:46 +02:00
Marek Marczykowski-Górecki
b8b4e105c0
qrexec-lib: return unsigned where only non-negative value is returned
2014-02-19 20:52:24 +01:00
Vincent Penquerc'h
03c9cb1388
Add a few consts where appropriate
2014-02-16 11:08:22 +01:00
Marek Marczykowski-Górecki
1c6f44d7fa
qrexec-lib: fix compile warnings
2014-02-07 05:26:52 +01:00
Vincent Penquerc'h
f7e943f7ec
txrx-vchan: guard against invalid buffer sizes from libvchan
...
These APIs can now return -1 when invalid indices are detected.
2014-01-21 20:57:20 +01:00
Marek Marczykowski-Górecki
2ee40f16c2
qrexec-lib: fail peer_client_init call when domain dies
...
Don't wait indefinitely.
2013-10-27 16:06:26 +01:00
Marek Marczykowski-Górecki
2739340559
qrexec-lib: fix memory leak
...
If xs_read returns pointer to empty string (len==0), then it was leaked.
2013-10-27 16:05:32 +01:00
Marek Marczykowski
42e133b753
Qrexec common code, qubes.Filecopy common code, udev scripts
2013-03-20 06:27:32 +01:00