Vincent Penquerc'h
3a39c65e3e
linux-utils: misc const/prototype fixups
11 years ago
Vincent Penquerc'h
af78e8d9e8
unpack: count directory and symlink sizes
...
Also do not rely on unpack being called just once if we don't
have to and initialize counts.
Since we don't know directory size before populating with files,
we just accumulate the size on the second pass, but do not actually
check for the limit being reached. If there's any file after that,
that'll trip the check.
11 years ago
Vincent Penquerc'h
77d34c3096
unix-server: guard against buffer overflow
...
sun_path is fairly small, and while the input is a smaller constant,
you never know how that might change.
11 years ago
Vincent Penquerc'h
21154a3e6b
unix-server: some error checking
11 years ago
Vincent Penquerc'h
9192aa041d
buffer.c: guard against bad input
...
The byte limit would be hit if adding one byte to a buffer
that's half the limit, due to the temporary double copy.
Not sure if that's something that's worth changing.
11 years ago
Vincent Penquerc'h
7f2ac22d49
meminfo-writer: fix high memory check for more than about 150 GB RAM
11 years ago
Vincent Penquerc'h
e6c29bbae1
meminfo-writer: ensure we do not write outside our buffer
...
Reading the max size would cause a NUL to be written after
the buffer, while an error would cause one to be written
before it.
11 years ago
Vincent Penquerc'h
2758d2a1d3
meminfo-writer: kill child if we error out due to failure to write the pid file
11 years ago
Vincent Penquerc'h
1a72505d24
meminfo-writer: simple command line sanity checks
11 years ago
Vincent Penquerc'h
0c718b7f54
meminfo-writer: trivial typo fix
11 years ago
Vincent Penquerc'h
76afc2e72f
meminfo-writer: ensure we always use the first parses memory info
...
It could plausibly be ignored for stupidly large thresholds
11 years ago
Vincent Penquerc'h
7e086970e9
meminfo-writer: make meminfo parsing more robust
...
- ensure we see all the expected fields
- avoid overflowing name buffer on malformed input
- avoid possible overread when the last line is small
11 years ago
Vincent Penquerc'h
2ba46ff17f
meminfo-writer: make buffers const where possible
11 years ago
Marek Marczykowski-Górecki
f0b1271a5e
Include meminfo-writer
...
It is common for dom0 and VM, so keep in one place for both of them.
11 years ago
Joanna Rutkowska
5afa710f21
version 2.0.1
11 years ago
Olivier MEDOC
8cb51d76c9
archlinux: allow static libraries to be packaged
11 years ago
Joanna Rutkowska
f00c5acb98
version 1.3.2
11 years ago
Marek Marczykowski-Górecki
21612bfadf
qrexec-lib: add support for verbose mode (echo just processed file)
11 years ago
Marek Marczykowski-Górecki
761305bc8b
qrexec-lib: check files limit before processing the file
...
Off-by-one error.
11 years ago
Joanna Rutkowska
05092fb3e6
version 1.3.1
11 years ago
Marek Marczykowski-Górecki
2ee40f16c2
qrexec-lib: fail peer_client_init call when domain dies
...
Don't wait indefinitely.
11 years ago
Marek Marczykowski-Górecki
2739340559
qrexec-lib: fix memory leak
...
If xs_read returns pointer to empty string (len==0), then it was leaked.
11 years ago
Marek Marczykowski-Górecki
c3ef1acb1a
Merge branch 'master' of git://git.qubes-os.org/joanna/linux-utils
...
Conflicts:
version
11 years ago
Joanna Rutkowska
1e93583060
version 1.3
11 years ago
Marek Marczykowski-Górecki
077afa8a65
version 1.2.1
11 years ago
Marek Marczykowski-Górecki
23ea1ebe19
qvm-block: detect read-only devices
11 years ago
Marek Marczykowski-Górecki
0bf30e0426
version 1.2
11 years ago
Marek Marczykowski-Górecki
a73be3f126
qubes-rpc/filecopy: send last processed filename for diagnostic purposes
...
This will ease solving transfer problems - sender will known at which
file it failed.
11 years ago
Marek Marczykowski-Górecki
5131810265
qubes-rpc/filecopy: use explicit struct alignment
...
This is much more readable, than guessing exact struct packing done by
gcc on x86_64.
11 years ago
Marek Marczykowski-Górecki
138d7899d9
Remove duplicated filecopy.h header
...
The same also exists as libqubes-rpc-filecopy.h.
11 years ago
Olivier Medoc
c5c3448d91
archlinux: created build scripts
11 years ago
Marek Marczykowski
7d85cbd80a
version 1.1
11 years ago
Marek Marczykowski
a84a1e98e4
spec: Add missing build requires
11 years ago
Marek Marczykowski
c7277740b0
Add 'clean' make target
11 years ago
Marek Marczykowski
42e133b753
Qrexec common code, qubes.Filecopy common code, udev scripts
11 years ago