Changesets: bareos

master ddc4ea86

2023-11-27 14:21

Sebastian Sura

Ported: N/A

Details Diff
vadp-dumper: fix buffer overflow

Since sectors_per_call is not actually bounded by SECTORS_PER_CALL, we
need to ensure that the buffer has enough space at runtime.
mod - core/src/vmware/vadp_dumper/bareos_vadp_dumper.cc Diff File

master 7be69c0c

2023-11-27 13:53

bruno-at-bareos

Ported: N/A

Details Diff
plugins: remove old deprecated postgres plugin

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
mod - core/platforms/packaging/bareos.spec Diff File
mod - core/src/plugins/filed/python/CMakeLists.txt Diff File
rm - core/src/plugins/filed/python/postgres/bareos-fd-postgres.py Diff File
mod - debian/bareos-filedaemon-postgresql-python-plugin.install.in Diff File
mod - systemtests/tests/CMakeLists.txt Diff File
rm - systemtests/tests/py3plug-fd-postgres/CMakeLists.txt Diff File
rm - systemtests/tests/py3plug-fd-postgres/database/setup_local_db.sh.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/catalog/MyCatalog.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/client/bareos-fd.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/director/bareos-dir.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/fileset/Catalog.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/fileset/PluginTest.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/fileset/PluginTestNoRole.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/fileset/PluginTestRole.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/fileset/SelfTest.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/job/RestoreFiles.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/jobdefs/DefaultJob.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/messages/Daemon.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/messages/Standard.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/pool/Differential.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/pool/Full.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/pool/Incremental.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/pool/Scratch.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/storage/File.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-fd.d/client/myself.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-fd.d/director/bareos-dir.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-fd.d/messages/Standard.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-sd.d/device/FileStorage.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-sd.d/director/bareos-dir.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-sd.d/messages/Standard.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-sd.d/storage/bareos-sd.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bconsole.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/testrunner-default Diff File
rm - systemtests/tests/py3plug-fd-postgres/testrunner-roles Diff File

master 82193f5d

2023-11-27 13:07

arogge

Ported: N/A

Details Diff
python-fd: allow storing values in encoded format

by adding a transform (currently only "enc") to an option name, the
python baseclass will now decode the value.
i.e. if you configure `password#enc=E+*g/GAhM4` you will end up with
the option password containing the value "password".
mod - core/src/plugins/filed/python/pyfiles/BareosFdPluginBaseclass.py Diff File
mod - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-dir.d/fileset/PluginConfigTestNoFile.conf.in Diff File
mod - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-fd.d/plugin_defaults.ini Diff File
mod - systemtests/tests/py3plug-fd-basic/testrunner-config Diff File

master d4861da2

2023-11-27 09:54

Sebastian Sura

Ported: N/A

Details Diff
apply bareos-check-sources
mod - core/src/vmware/vadp_dumper/cbuf.cc Diff File
mod - core/src/vmware/vadp_dumper/cbuf.h Diff File
mod - core/src/vmware/vadp_dumper/copy_thread.cc Diff File
mod - core/src/vmware/vadp_dumper/copy_thread.h Diff File

master fd3277fe

2023-11-27 09:47

Sebastian Sura

Ported: N/A

Details Diff
copy-thread: fix data race

We need to ensure that the writer does not write into the block we are
currently reading. Currently we only distinguish between data thats
inside the queue (which can neither be written to nor read from) and
data thats outside the queue (which can _both_ be written to and read
from).
To fix this data race we split the data into three categories instead:
- The head of the queue (which can only be read from)
- The rest of the queue (which can neither be read from nor written
to)
- The data outside the queue (which can only be written to)
To accomplish this we split the normal dequeue() function into two
parts. The normal dequeue() becomes peek-like, only returning the
head element, and the new function FinishDeq() does the actual
dequeuing.
mod - core/src/vmware/vadp_dumper/cbuf.cc Diff File
mod - core/src/vmware/vadp_dumper/cbuf.h Diff File
mod - core/src/vmware/vadp_dumper/copy_thread.cc Diff File

master ec1c7b19

2023-11-27 09:44

Sebastian Sura

Ported: N/A

Details Diff
copy-thread: add capacity check

Since the input size is a variable, we need to ensure that we hold
enough capacity to actually read the data into the buffer. Otherwise,
if we get unlucky, we will run into the situation were the first few
cbts are very small, and the rest are really big, ensuring a buffer
overflow; possibly causing a crash.
mod - core/src/vmware/vadp_dumper/copy_thread.cc Diff File
mod - core/src/vmware/vadp_dumper/copy_thread.h Diff File

master 0544bbb0

2023-11-27 09:39

Sebastian Sura

Ported: N/A

Details Diff
vadp-dumper: apply bareos_check_sources
mod - core/src/vmware/vadp_dumper/bareos_vadp_dumper.cc Diff File

master 9d9a51c5

2023-11-27 09:38

Sebastian Sura

Ported: N/A

Details Diff
vadp-dumper: read from stdin during restore

This code path is only taken if multithreaded restore is selected.
mod - core/src/vmware/vadp_dumper/bareos_vadp_dumper.cc Diff File

master c1cefba3

2023-11-27 09:37

Sebastian Sura

Ported: N/A

Details Diff
vadp-dumper: add error message on read/write failure
mod - core/src/vmware/vadp_dumper/bareos_vadp_dumper.cc Diff File

master cae977b4

2023-11-27 09:09

Sebastian Sura

Ported: N/A

Details Diff
vadp-dumper: const -> inline constexpr
mod - core/src/vmware/vadp_dumper/bareos_vadp_dumper.cc Diff File

master 0d9bf94d

2023-11-24 16:08

Bareos Bot


Committer: GitHub

Ported: N/A

Details Diff
Merge pull request 0001589

github actions: PyPi: install setuptools
mod - .github/workflows/publish-python-packages-to-pypi.yml Diff File
mod - CHANGELOG.md Diff File

master a19e0337

2023-11-24 16:08

Bareos Bot

Ported: N/A

Details Diff
Update CHANGELOG.md
mod - CHANGELOG.md Diff File

master 2038cac7

2023-11-24 14:46

arogge


Committer: GitHub

Ported: N/A

Details Diff
Merge pull request 0001603

Start development of Bareos 24
mod - CHANGELOG.md Diff File
mod - SECURITY.md Diff File
mod - docs/manuals/source/conf.py Diff File

master 56ffc6c1

2023-11-24 14:22

arogge

Ported: N/A

Details Diff
Start development of Bareos 24
mod - CHANGELOG.md Diff File
mod - SECURITY.md Diff File
mod - docs/manuals/source/conf.py Diff File

master 75ca8a39

2023-11-24 14:00

Bareos Bot


Committer: GitHub

Ported: N/A

Details Diff
Merge pull request 0001601

Enable automatic cpu-dependent dispatch for xxHash
mod - CHANGELOG.md Diff File
mod - CMakeLists.txt Diff File
add - cmake/RemoveNDebugFlag.cmake Diff File
mod - core/src/benchmarks/CMakeLists.txt Diff File
add - core/src/benchmarks/digest.cc Diff File
mod - core/src/lib/CMakeLists.txt Diff File
mod - core/src/lib/xxhash.cc Diff File
mod - third-party/CMakeLists.txt Diff File
mod - third-party/xxHash.cmake Diff File

master c5b510dc

2023-11-24 13:59

Bareos Bot

Ported: N/A

Details Diff
Update CHANGELOG.md
mod - CHANGELOG.md Diff File

master eb042a09

2023-11-24 10:52

Bareos Bot


Committer: GitHub

Ported: N/A

Details Diff
Merge pull request 0001602

Remove unnecessary loader/module split in Python modules for the FD
mod - CHANGELOG.md Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.filedaemon-ldap-python-plugin Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.filedaemon-python-plugins-common Diff File
mod - core/platforms/packaging/bareos.spec Diff File
mod - core/src/plugins/filed/python/CMakeLists.txt Diff File
rm - core/src/plugins/filed/python/ldap/BareosFdPluginLDAP.py Diff File
mod - core/src/plugins/filed/python/ldap/bareos-fd-ldap.py Diff File
rm - core/src/plugins/filed/python/mariabackup/BareosFdPluginMariabackup.py Diff File
mod - core/src/plugins/filed/python/mariabackup/bareos-fd-mariabackup.py Diff File
rm - core/src/plugins/filed/python/percona-xtrabackup/BareosFdPluginPerconaXtraBackup.py Diff File
mod - core/src/plugins/filed/python/percona-xtrabackup/bareos-fd-percona-xtrabackup.py Diff File
rm - core/src/plugins/filed/python/postgres/BareosFdPluginPostgres.py Diff File
mod - core/src/plugins/filed/python/postgres/bareos-fd-postgres.py Diff File
mod - core/src/plugins/filed/python/postgresql/bareos-fd-postgresql.py Diff File
rm - core/src/plugins/filed/python/pyfiles/BareosFdPluginLocalFileset.py Diff File
mod - core/src/plugins/filed/python/pyfiles/BareosFdWrapper.py Diff File
mod - core/src/plugins/filed/python/pyfiles/bareos-fd-local-fileset.py Diff File
rm - core/src/plugins/filed/python/vmware/BareosFdPluginVMware.py Diff File
mod - core/src/plugins/filed/python/vmware/bareos-fd-vmware.py Diff File
mod - core/src/vmware/vmware_plugin/CMakeLists.txt Diff File
mod - debian/bareos-filedaemon-ldap-python-plugin.install.in Diff File
mod - debian/bareos-filedaemon-mariabackup-python-plugin.install.in Diff File
mod - debian/bareos-filedaemon-percona-xtrabackup-python-plugin.install.in Diff File
mod - debian/bareos-filedaemon-postgresql-python-plugin.install.in Diff File
mod - debian/bareos-filedaemon-python-plugins-common.install.in Diff File
mod - debian/bareos-vmware-plugin.install Diff File
mod - systemtests/tests/py3plug-fd-postgres/testrunner-default Diff File
mod - systemtests/tests/py3plug-fd-postgres/testrunner-roles Diff File
mod - systemtests/tests/py3plug-fd-postgresql/testrunner-roles Diff File
mod - systemtests/tests/python-bareos/etc/bareos/bareos-dir.d/fileset/PluginOptionsTest.conf.in Diff File
rm - systemtests/tests/python-bareos/python-modules/bareos_fd_pluginoptions/__init__.py Diff File

master df6847b5

2023-11-24 10:52

Bareos Bot

Ported: N/A

Details Diff
Update CHANGELOG.md
mod - CHANGELOG.md Diff File

master 91d07546

2023-11-23 20:50

arogge

Ported: N/A

Details Diff
systemtests: add test for new python config files
add - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-dir.d/fileset/PluginConfigTestBothFiles.conf.in Diff File
add - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-dir.d/fileset/PluginConfigTestDefaultsFile.conf.in Diff File
add - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-dir.d/fileset/PluginConfigTestNoFile.conf.in Diff File
add - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-dir.d/fileset/PluginConfigTestOverridesFile.conf.in Diff File
add - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-fd.d/plugin_defaults.ini Diff File
add - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-fd.d/plugin_overrides.ini Diff File
add - systemtests/tests/py3plug-fd-basic/python-modules/config-test-module.py Diff File
add - systemtests/tests/py3plug-fd-basic/testrunner-config Diff File

master de1dd5b2

2023-11-23 20:43

arogge

Ported: N/A

Details Diff
python-fd: provide config-file handling

this patch extends BareosFdPluginBaseclass to provide a standard way to
work with plugin configuration files.

When the plugin options parser encounters one of the options
defaults_file or overrides_file, it will treat the values as a path to
an ini-style configuration file and will try to read it. The resulting
options are added with precedence overrides_file, plugin definition,
defaults_file.
The code will consume the defaults_file and overrides_file options, so
the plugin will not see them later.
mod - core/src/plugins/filed/python/pyfiles/BareosFdPluginBaseclass.py Diff File

master 399b037a

2023-11-23 20:41

arogge

Ported: N/A

Details Diff
python-fd: allow getting configuration file path

This patch adds bVarUsedConfig that provides the path to the
configuration that the fd uses. This will contain something like
`/etc/bareos/bareos-fd.d/*/*.conf`.
mod - core/src/filed/fd_plugins.cc Diff File
mod - core/src/filed/fd_plugins.h Diff File
mod - core/src/plugins/filed/python/module/bareosfd.cc Diff File
mod - core/src/plugins/filed/python/module/bareosfd.h Diff File
mod - core/src/tests/CMakeLists.txt Diff File
mod - core/src/tests/test_fd_plugins.cc Diff File

master 4d2196b3

2023-11-23 17:09

SamuelBoerlin


Committer: Bareos Bot

Ported: N/A

Details Diff
restore: make fileregex more like file parameter
mod - core/src/dird/ua_restore.cc Diff File
mod - systemtests/tests/restore/testrunner-restore-fileregex Diff File

master e252cc70

2023-11-23 13:23

arogge

Ported: N/A

Details Diff
python-fd: merge postgres plugin into one file
mod - core/platforms/packaging/bareos.spec Diff File
mod - core/src/plugins/filed/python/CMakeLists.txt Diff File
rm - core/src/plugins/filed/python/postgres/BareosFdPluginPostgres.py Diff File
mod - core/src/plugins/filed/python/postgres/bareos-fd-postgres.py Diff File
mod - debian/bareos-filedaemon-postgresql-python-plugin.install.in Diff File

master 24598afc

2023-11-23 12:25

arogge

Ported: N/A

Details Diff
python-fd: merge vmware plugin into one file
mod - core/platforms/packaging/bareos.spec Diff File
mod - core/src/plugins/filed/python/CMakeLists.txt Diff File
rm - core/src/plugins/filed/python/vmware/BareosFdPluginVMware.py Diff File
mod - core/src/plugins/filed/python/vmware/bareos-fd-vmware.py Diff File
mod - core/src/vmware/vmware_plugin/CMakeLists.txt Diff File
mod - debian/bareos-vmware-plugin.install Diff File

master a597c884

2023-11-23 09:48

arogge

Ported: N/A

Details Diff
systemtests: fix problem in postgres tests
mod - systemtests/tests/py3plug-fd-postgres/testrunner-default Diff File
mod - systemtests/tests/py3plug-fd-postgres/testrunner-roles Diff File
 First  Prev  1 2 3 ... 70 ... 86 87 88 89 90 91 92 ... 140 ... 210 ... 280 ... 350 ... 420 ... 490 ... 560 ... 630 ... 678 679 680  Next  Last