nixpkgs/nixos/modules
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
..
config users-groups service: add autoSubUidGidRange option 2022-01-09 09:43:55 +03:00
hardware Merge pull request #154550 from veehaitch/sgx-compat-udev 2022-01-13 14:55:08 +00:00
i18n/input-method nixos/documentation: split options doc build 2022-01-02 19:46:13 +01:00
installer Merge pull request #150408 from Enzime/systemd-boot-extra-entries 2022-01-13 07:15:05 +00:00
misc nixos/documentation: fix docs cross build 2022-01-08 16:03:23 +01:00
profiles all-hardware: Add virtio_mmio module 2022-01-06 17:23:10 -08:00
programs nixos/tsm-{client,backup}: update links in module comments 2022-01-17 12:09:27 +01:00
security Merge pull request #146937 from amarshall/pam-apparmor-fix 2022-01-12 06:31:35 +00:00
services nixos/tsm-backup: enable most systemd sandboxing options 2022-01-17 12:09:27 +01:00
system Merge pull request #150408 from Enzime/systemd-boot-extra-entries 2022-01-13 07:15:05 +00:00
tasks Merge pull request #148637 from hexagonal-sun/network/gre-tap-tun 2022-01-01 17:04:29 +00:00
testing nixos/lib/qemu-flags: rename to qemu-common 2021-09-18 16:58:16 +02:00
virtualisation nixos/vmware-guest: add mptspi kernel module to initrd 2022-01-10 17:06:02 +01:00
module-list.nix nixos/heisenbridge: Add to modules-list.nix 2022-01-13 13:30:41 +12:00
rename.nix couchpotato, nixos/couchpotato: remove 2022-01-02 13:38:11 +01:00