Commit Graph

8421 Commits

Author SHA1 Message Date
TW 0da4fff38b
Merge pull request #7905 from FelixSchwarz/py313-unistdh
Python 3.13: include `unistd.h` in `_chunker.c`
2023-11-05 13:26:17 +01:00
Felix Schwarz c350c1b36d include unistd.h in _chunker.c
With Python 3.13, Python.h no longer includes the <unistd.h> standard header file:
https://docs.python.org/3.13/whatsnew/3.13.html#id8
2023-11-05 11:48:16 +01:00
TW d25cc1b0d1
Merge pull request #7884 from ThomasWaldmann/fix-transfer-zlib-legacy
zlib legacy decompress fixes (master)
2023-10-25 00:07:21 +02:00
Thomas Waldmann f0e9999768
zlib legacy decompress: fix tests 2023-10-24 23:33:42 +02:00
Thomas Waldmann 0ac525bb05
zlib legacy decompress: call check_fix_size method
so we also have the decompressed size in the metadata.
2023-10-24 19:45:21 +02:00
Thomas Waldmann 0cfdf6da91
zlib legacy decompress: return meta dict, fixes #7883
for the other compression methods, this is done in
the base class, but the zlib legacy does not call
that method as it also removes the header bytes,
which zlib legacy does not have.
2023-10-24 19:37:24 +02:00
TW e1c75e8542
Merge pull request #7875 from steelman/acl_pc
linux: use pkgconfig to find libacl
2023-10-24 17:08:14 +02:00
Łukasz Stelmach c68a158ffb linux: use pkgconfig to find libacl
Using pkgconfig gives a more meaningful error message in case libacl
development files are missing.
2023-10-24 15:00:21 +02:00
TW 9108039786
Merge pull request #7865 from ThomasWaldmann/fix-xattr-mypy-master
mypy: ignore attr-defined for errno.ENOATTR/ENODATA
2023-10-10 21:36:21 +02:00
TW 8e9c44b353
Merge pull request #7863 from ThomasWaldmann/remove-bountysource-badge-master
remove bountysource badge (master)
2023-10-10 21:01:42 +02:00
Thomas Waldmann b78f330024
mypy: ignore attr-defined for errno.ENOATTR/ENODATA 2023-10-10 20:50:25 +02:00
Thomas Waldmann 871da25865
remove bountysource badge 2023-10-10 20:31:21 +02:00
TW 75d8abc47b
Merge pull request #7862 from ThomasWaldmann/misc-updates-master
misc. updates (master)
2023-10-10 19:48:32 +02:00
Thomas Waldmann f7e8462bd0
vagrant: use generic/debian9 box, fixes #7579
the debian/stretch64 was broken and never fixed.
2023-10-10 17:41:58 +02:00
Thomas Waldmann 3fdbd541db
update development.lock.txt
there was some breakage with py312, so better use current tooling.
2023-10-10 17:41:16 +02:00
Thomas Waldmann 82440a2a38
github CI: test on py312 (w/o -dev) 2023-10-10 17:38:39 +02:00
Thomas Waldmann fc0dbe2913
vagrant: install py312 via pyenv 2023-10-10 17:37:34 +02:00
Thomas Waldmann 26be8a6fe9
allow setuptools_scm >= 8 again
8.0.4 got a fix, so we can allow it again.
2023-10-10 17:35:03 +02:00
TW adfab2b6d7
Merge pull request #7859 from debuglevel/patch-1
feat(docs): use virtualenv on Cygwin
2023-10-10 14:12:01 +02:00
Marc Kohaupt a6b016f894
feat(docs): use virtualenv on Cygwin
Hint for Cygwin users to make sure they use a virtual environment.
Not using a virtual environment will be likely troublesome if there is already a Python installed on Windows.
2023-10-09 12:35:33 +02:00
TW d4ea88433c
Merge pull request #7855 from ytec-nl/master
Prevent CLI argument issues in scripts/glibc_check.py
2023-10-09 01:16:00 +02:00
Ceesjan Luiten 7afa8d4626 Prevent CLI argument issues 2023-10-07 19:58:41 +02:00
TW 8fc0944950
Merge pull request #7830 from ThomasWaldmann/typed-repoobjs
replace TAMs by typed repo objects, fixes #7670
2023-09-30 21:46:51 +02:00
TW 4a688ee4f4
Merge pull request #7851 from ThomasWaldmann/allow-msgpack107-master
allow msgpack 1.0.7 (master)
2023-09-28 15:36:40 +02:00
Thomas Waldmann cdcab4df68
allow msgpack 1.0.7 2023-09-28 14:31:03 +02:00
TW e4669ec316
Merge pull request #7843 from ThomasWaldmann/offline-docs-master
readthedocs: also build offline docs, fixes #7835
2023-09-25 15:23:36 +02:00
Thomas Waldmann 80b08aff35
readthedocs: also build offline docs, fixes #7835 2023-09-25 15:21:50 +02:00
Thomas Waldmann bd1d734591
docs: removed TAMs, introduce typed repo objects 2023-09-24 20:11:00 +02:00
Thomas Waldmann d1fde11645
tests: borg check must not add a spoofed archive to manifest
also: do a small optimisation in borg check:

if the type of the repo object is not ROBJ_ARCHIVE_META, we
can skip the object, it can not contain valid archive meta data.

if the type is correct, this is already a sufficient check, so
we can be quite sure that there will be valid archive metadata
in the object.
2023-09-24 20:10:58 +02:00
Thomas Waldmann 6b4697b479
tests: borg check notices/repairs a spoofed manifest 2023-09-24 20:10:57 +02:00
Thomas Waldmann 170380c657
raise IntegrityError if ro_type is not as expected 2023-09-24 20:10:56 +02:00
Thomas Waldmann cb4676048a
remove remainders of TAM support 2023-09-24 20:10:54 +02:00
Thomas Waldmann 1cf62d8fc7
remove manifest TAMs 2023-09-24 20:10:53 +02:00
Thomas Waldmann 6a68ad5cd6
remove archive TAMs 2023-09-24 20:10:51 +02:00
Thomas Waldmann 1b6f928917
ro_type: typed repo objects, see #7670
writing: put type into repoobj metadata
reading: check wanted type against type we got

repoobj metadata is encrypted and authenticated.
repoobj data is encrypted and authenticated, also (separately).
encryption and decryption of both metadata and data get the
same "chunk ID" as AAD, so both are "bound" to that (same) ID.

a repo-side attacker can neither see cleartext metadata/data,
nor successfully tamper with it (AEAD decryption would fail).

also, a repo-side attacker could not replace a repoobj A with a
differently typed repoobj B without borg noticing:
- the metadata/data is cryptographically bound to its ID.
  authentication/decryption would fail on mismatch.
- the type check would fail.

thus, the problem (see CVEs in changelog) solved in borg 1 by the
manifest and archive TAMs is now already solved by the type check.
2023-09-24 20:10:50 +02:00
TW 506718e82f
Merge pull request #7837 from ThomasWaldmann/remove-recreate-recompress
Remove recreate --recompress option
2023-09-24 18:16:35 +02:00
Thomas Waldmann 0fcd3e9479
add_chunk: remove overwrite parameter 2023-09-23 00:10:35 +02:00
Thomas Waldmann 15c24cbe7e
recreate: remove --recompress option
For many use cases, the repo-wide "rcompress" is more efficient.

Also, recreate --recompress calls add_chunk with overwrite=True,
which is unsupported with the AdHocCache.
2023-09-23 00:01:39 +02:00
TW a9e625d11f
Merge pull request #7834 from ThomasWaldmann/fix-unreadable-dir-cleanup-master
fix post-test permission issues
2023-09-21 00:34:04 +02:00
Thomas Waldmann 2195558eea
fix post-test permission issues 2023-09-20 22:45:57 +02:00
TW 84fc938e3c
Merge pull request #7832 from ThomasWaldmann/exclude-compiled-files
pyproject.toml: exclude source files which have been compiled, fixes #7828
2023-09-18 01:51:28 +02:00
Thomas Waldmann 4b1dac78f5
pyproject.toml: exclude source files which have been compiled, fixes #7828 2023-09-18 01:03:57 +02:00
TW c686dc84ae
Merge pull request #7824 from ThomasWaldmann/rel200b7
release 2.0.0b7
2023-09-14 23:52:32 +02:00
Thomas Waldmann a7067ebbaa
vagrant: upgrade source dependencies of stretch VM 2023-09-14 22:41:44 +02:00
Thomas Waldmann 75f8391bb6
vagrant: upgrade to pyinstaller 5.13.2 2023-09-14 19:26:01 +02:00
Thomas Waldmann b2e8ad0257
vagrant: upgrade to python 3.11.5 2023-09-14 17:01:54 +02:00
Thomas Waldmann 3f75950226
build_usage / build_man 2023-09-14 15:52:08 +02:00
Thomas Waldmann 7e15b6488a
update CHANGES 2023-09-14 15:48:18 +02:00
TW 4e8cc050c2
Merge pull request #7823 from ThomasWaldmann/allow-msgpack-106-master
allow msgpack 1.0.6 (which has py312 wheels), fixes #7810
2023-09-14 15:34:52 +02:00
Thomas Waldmann 12e224613e
test_is_slow_msgpack: skip test on expected slow msgpack environments 2023-09-14 14:47:30 +02:00