mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-04-30 19:15:39 -04:00
update rsync systemd unit, add more security features
This commit is contained in:
committed by
Wayne Davison
parent
643b9d0183
commit
69f445fd09
@@ -1,9 +1,27 @@
|
||||
[Unit]
|
||||
Description=fast remote file copy program daemon
|
||||
ConditionPathExists=/etc/rsyncd.conf
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/rsync --daemon --no-detach
|
||||
RestartSec=1
|
||||
|
||||
# Citing README.md:
|
||||
#
|
||||
# [...] Using ssh is recommended for its security features.
|
||||
#
|
||||
# Alternatively, rsync can run in `daemon' mode, listening on a socket.
|
||||
# This is generally used for public file distribution, [...]
|
||||
#
|
||||
# So let's assume some extra security is more than welcome here. We do full
|
||||
# system protection (which makes it read-only) and hide users' homes and
|
||||
# devices. See systemd.unit(5) and search for "drop-in" to override.
|
||||
|
||||
ProtectSystem=full
|
||||
ProtectHome=on
|
||||
PrivateDevices=on
|
||||
NoNewPrivileges=on
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user