Browse Source

Update systemd service example to return a permission error when a system call isn't permitted.

master
Dan Helfman 1 month ago
parent
commit
8fde19a7dc
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      NEWS
  2. +1
    -0
      sample/systemd/borgmatic.service

+ 2
- 0
NEWS View File

@ -1,5 +1,7 @@
1.5.13.dev0
* #373: Document that passphrase is used for Borg keyfile encryption, not just repokey encryption.
* Update systemd service example to return a permission error when a system call isn't permitted
(instead of terminating borgmatic outright).
* Drop support for Python 3.5, which has been end-of-lifed.
* Update versions of test dependencies (test_requirements.txt and test containers).
* Only support black code formatter on Python 3.8+. New black dependencies make installation


+ 1
- 0
sample/systemd/borgmatic.service View File

@ -29,6 +29,7 @@ RestrictRealtime=yes
RestrictSUIDSGID=yes
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallErrorNumber=EPERM
# Restrict write access
# Change to 'ProtectSystem=strict' and uncomment 'ProtectHome' to make the whole file
# system read-only be default and uncomment 'ReadWritePaths' for the required write access.


Loading…
Cancel
Save