qubes-linux-utils/qrexec-lib
Marek Marczykowski-Górecki eb11cf6989
qfile-unpacker: do not call fdatasync() at each file (#1257)
POSIX  requires  that  a  read(2)  which  can be proved to occur after a
write() has returned returns the new data.
We want here only that other processes in the same VM will see the
file either fully written, or not see it at all. So ensuring that
linkat(2) is called after write is completed should be enough.

Fixes QubesOS/qubes-issues#1257

(cherry picked from commit c1d42f1602)
2015-10-11 02:51:00 +02:00
..
buffer.c linux-utils: misc const/prototype fixups 2014-01-06 14:40:57 +01:00
copy-file.c Add a few consts where appropriate 2014-02-16 11:08:22 +01:00
crc32.c Qrexec common code, qubes.Filecopy common code, udev scripts 2013-03-20 06:27:32 +01:00
crc32.h Qrexec common code, qubes.Filecopy common code, udev scripts 2013-03-20 06:27:32 +01:00
exec.c qrexec: create stdin/out/err as sockets instead of pipes 2015-02-16 23:11:37 +01:00
ioall.c ioall: do not reset file flags when they're already as requested 2014-01-06 14:40:57 +01:00
ioall.h linux-utils: misc const/prototype fixups 2014-01-06 14:40:57 +01:00
libqrexec-utils.h Fix compile warnings 2014-11-19 15:10:59 +01:00
libqubes-rpc-filecopy.h filecopy: create new file unaccessible to the user until fully written 2015-01-30 00:55:46 +01:00
Makefile qrexec-lib: enable compiler optimization 2015-03-20 12:17:32 +01:00
qrexec.h qrexec: update protocol 2014-11-19 15:10:59 +01:00
txrx-vchan.c Fix compile warnings 2014-11-19 15:10:59 +01:00
unix-server.c unix-server: do not check for unlink() error when creating socket 2014-01-07 00:27:57 +01:00
unpack.c qfile-unpacker: do not call fdatasync() at each file (#1257) 2015-10-11 02:51:00 +02:00
write-stdin.c Update for new vchan API, remove code not needed anymore 2014-11-19 15:10:58 +01:00