mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-23 04:07: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
|
||||
PrivateTmp=yes
|
||||
PrivateUsers=true
|
||||
DevicePolicy=closed
|
||||
PrivateDevices=yes
|
||||
ProtectHome=yes
|
||||
ProtectSystem=full
|
||||
|
@ -46,7 +47,7 @@ ProtectKernelModules=yes
|
|||
ProtectKernelTunables=yes
|
||||
ProtectSystem=strict
|
||||
RestrictAddressFamilies=AF_INET AF_INET6
|
||||
RestrictNamespaces=cgroup ipc mnt pid user uts
|
||||
RestrictNamespaces=true
|
||||
RestrictRealtime=true
|
||||
RestrictSUIDSGID=true
|
||||
RemoveIPC=true
|
||||
|
@ -55,6 +56,11 @@ ReadWriteDirectories=-/var/lib/i2pd
|
|||
ReadWriteDirectories=-/var/log/i2pd
|
||||
ReadWriteDirectories=-/run
|
||||
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]
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Add table
Reference in a new issue