Update i2pd.service

Hardening for i2pd.service
This commit is contained in:
Darkcyankitty 2025-08-20 18:12:56 +00:00 committed by GitHub
parent 2a48d58549
commit 1a36152123
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,5 +34,20 @@ LimitNOFILE=8192
# To enable write of coredump uncomment this # To enable write of coredump uncomment this
#LimitCORE=infinity #LimitCORE=infinity
#hardening
ProtectHostname=true
ProtectKernelLogs=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectProc=invisible
ProcSubset=pid
PrivateTmp=true
PrivateUsers=true
PrivateDevices=true
PrivateIPC=true
NoNewPrivileges=true
RestrictNamespaces=true
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target