summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch
diff options
context:
space:
mode:
authorYarny0 <41838844+Yarny0@users.noreply.github.com>2021-10-24 10:56:40 +0200
committerYarny0 <41838844+Yarny0@users.noreply.github.com>2022-01-17 12:09:27 +0100
commitc5effcaaeac42e3d54dd04985645ab2600641ad8 (patch)
tree4341b21b56e0c6b76ef7cfcfdaeed6c183f46eca /pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch
parent3f6d1f5f60461dc60992bf200e8c13535e2727a7 (diff)
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.
Diffstat (limited to 'pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch')
0 files changed, 0 insertions, 0 deletions