mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2024-10-01 04:45:34 -04:00
add initial hardening to remote backup service
This commit is contained in:
parent
db209e53b4
commit
ff010aa945
@ -2,8 +2,34 @@
|
|||||||
Description=Perform remote backup
|
Description=Perform remote backup
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
CapabilityBoundingSet=
|
||||||
CPUSchedulingPolicy=batch
|
CPUSchedulingPolicy=batch
|
||||||
ExecStart=/usr/local/bin/remote-backup
|
ExecStart=/usr/local/bin/remote-backup
|
||||||
|
LockPersonality=true
|
||||||
|
NoNewPrivileges=true
|
||||||
|
MemoryDenyWriteExecute=true
|
||||||
|
PrivateDevices=true
|
||||||
|
PrivateIPC=true
|
||||||
|
PrivateTmp=true
|
||||||
|
PrivateUsers=true
|
||||||
|
ProcSubset=pid
|
||||||
|
ProtectClock=true
|
||||||
|
ProtectControlGroups=true
|
||||||
|
ProtectHostname=true
|
||||||
|
ProtectKernelLogs=true
|
||||||
|
ProtectKernelModules=true
|
||||||
|
ProtectKernelTunables=true
|
||||||
|
ProtectProc=invisible
|
||||||
|
ProtectSystem=strict
|
||||||
|
RemoveIPC=true
|
||||||
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
||||||
|
RestrictNamespaces=true
|
||||||
|
RestrictRealtime=true
|
||||||
|
RestrictSUIDSGID=true
|
||||||
|
SystemCallArchitectures=native
|
||||||
|
SystemCallFilter=@system-service
|
||||||
|
SystemCallFilter=~@resources @obsolete
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
UMask=0077
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/root
|
WorkingDirectory=/root
|
||||||
|
Loading…
Reference in New Issue
Block a user