more systemd hardening
This commit is contained in:
parent
95423ebf63
commit
7cb1b69744
@ -9,19 +9,20 @@ Requires=network-online.target
|
|||||||
[Service]
|
[Service]
|
||||||
User=mail4one
|
User=mail4one
|
||||||
ExecStart=/usr/local/bin/mail4one --config /etc/mail4one/config.json
|
ExecStart=/usr/local/bin/mail4one --config /etc/mail4one/config.json
|
||||||
|
|
||||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||||
|
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||||
|
NoNewPrivileges=yes
|
||||||
|
|
||||||
StateDirectory=mail4one/certs mail4one/mails
|
StateDirectory=mail4one/certs mail4one/mails
|
||||||
StateDirectoryMode=0750
|
StateDirectoryMode=0750
|
||||||
UMask=
|
|
||||||
LogsDirectory=mail4one
|
LogsDirectory=mail4one
|
||||||
WorkingDirectory=/var/lib/mail4one
|
WorkingDirectory=/var/lib/mail4one
|
||||||
|
|
||||||
ProtectSystem=strict
|
ProtectSystem=strict
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
PrivateUsers=true
|
|
||||||
ProtectHome=yes
|
ProtectHome=yes
|
||||||
NoNewPrivileges=yes
|
ProtectProc=invisible
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user