This repository has been archived on 2020-08-09. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-systemd/templates/transmission-daemon.service.j2

31 lines
616 B
Plaintext
Raw Normal View History

[Unit]
StartLimitIntervalSec=0
[Service]
User=root
DynamicUser=true
2020-06-04 12:37:46 +00:00
Restart=on-failure
RestartSec=10
ProtectSystem=strict
PrivateUsers=true
NoNewPrivileges=yes
ReadWritePaths={{ transmission.root_dir }}
BindReadOnlyPaths=/usr /lib /lib64
TemporaryFileSystem=/:ro
Environment=TRANSMISSION_HOME={{ transmission.root_dir }}/.config
ProtectControlGroups=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
MemoryDenyWriteExecute=yes
LockPersonality=yes
PrivateTmp=yes
PrivateDevices=yes