mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-23 12:17:37 +01:00
more hardening
This commit is contained in:
parent
c916616e37
commit
155125a5bf
1 changed files with 7 additions and 1 deletions
|
@ -35,6 +35,7 @@ LimitNOFILE=65536
|
||||||
NoNewPrivileges=yes
|
NoNewPrivileges=yes
|
||||||
PrivateTmp=yes
|
PrivateTmp=yes
|
||||||
PrivateUsers=true
|
PrivateUsers=true
|
||||||
|
DevicePolicy=closed
|
||||||
PrivateDevices=yes
|
PrivateDevices=yes
|
||||||
ProtectHome=yes
|
ProtectHome=yes
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
|
@ -46,7 +47,7 @@ ProtectKernelModules=yes
|
||||||
ProtectKernelTunables=yes
|
ProtectKernelTunables=yes
|
||||||
ProtectSystem=strict
|
ProtectSystem=strict
|
||||||
RestrictAddressFamilies=AF_INET AF_INET6
|
RestrictAddressFamilies=AF_INET AF_INET6
|
||||||
RestrictNamespaces=cgroup ipc mnt pid user uts
|
RestrictNamespaces=true
|
||||||
RestrictRealtime=true
|
RestrictRealtime=true
|
||||||
RestrictSUIDSGID=true
|
RestrictSUIDSGID=true
|
||||||
RemoveIPC=true
|
RemoveIPC=true
|
||||||
|
@ -55,6 +56,11 @@ ReadWriteDirectories=-/var/lib/i2pd
|
||||||
ReadWriteDirectories=-/var/log/i2pd
|
ReadWriteDirectories=-/var/log/i2pd
|
||||||
ReadWriteDirectories=-/run
|
ReadWriteDirectories=-/run
|
||||||
CapabilityBoundingSet=
|
CapabilityBoundingSet=
|
||||||
|
UMask=0077
|
||||||
|
LockPersonality=true
|
||||||
|
MemoryDenyWriteExecute=true
|
||||||
|
SystemCallArchitectures=native
|
||||||
|
SystemCallFilter=~@clock @debug @module @mount @raw-io @reboot @mount @raw-io @reboot @swap @privileged @resources @cpu-emulation @obsolete
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Add table
Reference in a new issue