nixpkgs-suyu/nixos/modules/services/backup
Yarny0 c5effcaaea nixos/tsm-backup: enable most systemd sandboxing options
This enables some systemd sandboxing
options for the `tsm-backup.service`.
Those settings have been determined by expermentation.
This commit tries hard to protect the filesystem from
write access, but not to hide anything from read access,
so users can backup all files they choose to backup.
An exception are API filesystems (`/dev`, `/proc`, `/sys`):
As their "files" are not stored on persistent storage,
they are sandboxed away as much as possible.

Note that the service still has to run with root
privileges to reach files with limited access permissions.
The obvious alternative to use a dedicated user account and
the `CAP_DAC_READ_SEARCH` capability to permit system-wide
read access while blocking write access does not work.
Experiments have shown that `dsmc` verifies access permissions
for each file before attempting to open it for reading.
Hence `dsmc` refuses to copy files where the file permission
mode blocks read access -- even if process capabilities
would allow it to proceed irrespective of permissions.
2022-01-17 12:09:27 +01:00
..
automysqlbackup.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
bacula.nix nixos/*: add trivial defaultText for options with simple defaults 2021-12-02 22:35:04 +01:00
borgbackup.nix Revert "nixos/borgbackup: specify systemd WorkingDirectory" 2021-12-03 12:21:13 +01:00
borgbackup.xml
borgmatic.nix
btrbk.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
duplicati.nix nixos/duplicati: Add dataDir to service 2021-12-29 08:35:41 -07:00
duplicity.nix
mysql-backup.nix
postgresql-backup.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
postgresql-wal-receiver.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
restic-rest-server.nix nixos/restic-rest-server: Autocreate empty .htpasswd if needed for service boot 2022-01-02 21:13:07 -05:00
restic.nix Move systemd-lib.nix and systemd-unit-options.nix into utils 2021-11-20 17:52:29 -05:00
rsnapshot.nix
sanoid.nix nixos/documentation: split options doc build 2022-01-02 19:46:13 +01:00
syncoid.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
tarsnap.nix Merge pull request #148785 from pennae/more-option-doc-staticizing 2021-12-17 11:14:08 -05:00
tsm.nix nixos/tsm-backup: enable most systemd sandboxing options 2022-01-17 12:09:27 +01:00
zfs-replication.nix
znapzend.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
zrepl.nix nixos/zrepl: init 2021-02-24 11:56:02 -08:00