-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bacula: 5.2.13 -> 9.2.1 #37365
bacula: 5.2.13 -> 9.2.1 #37365
Conversation
@GrahamcOfBorg build bacula /cc @domenkozar @lovek323 |
Success on x86_64-linux (full log) Attempted: bacula Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: bacula Partial log (click to expand)
|
It would be better to modify the directory paths to the following in order to store logs in /var/log/bacula and keep working directory in /var/lib/bacula instead of nix store.
However, this will fail with the following issue due to the Makefile wanting to create a directory itself, which obviously doesn't have permission to do so.
Any ideas how to be able to create a directory inside /var/log/? |
That's against Nix's principles. You'll have to set the logdir at runtime or patch the Makefile so that the directory isn't created. |
(triage) @proteansec, does the service run correctly with this PR applied, if it is given the right flags at runtime? |
4aefd56
to
02a3726
Compare
The package is now built using the proper parameters and I've also modified the service nix package with LogsDirectory/StateDirectory in order for the /var/log/bacula and /var/lib/bacula to be properly created by systemd. The program builds just fine, but didn't actually test the service with the new LogsDirectory/StateDirectory settings, since I would need to rebuild my system out of my local nixpkgs, which is quite cumbersome and something that I don't currently have time for. |
OK thanks! Given the ancien-ness of the current version of bacula I think this could get merged without testing… Ideally there'd be a NixOS test that validates that bacula appears to work correctly, but… :/ Actually upon further investigation current version is vulnerable to CVSS3 9.5 (!) CVE-2017-15367, so I think this should even be backported ASAP. |
Actually I withdraw my assertion this fixes CVE-2017-15367: the nixpkgs bacula package doesn't include bacula-web, and therefore is not vulnerable. Backporting is thus likely a bad idea, given it'd be a big major version bump. |
Motivation for this change
Update bacula from the older version (2013) to the newest version (2018).
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)