diff --git a/contrib/i2pd.service b/contrib/i2pd.service index 1ab46979..99819ae1 100644 --- a/contrib/i2pd.service +++ b/contrib/i2pd.service @@ -33,6 +33,16 @@ SendSIGKILL=yes LimitNOFILE=8192 # To enable write of coredump uncomment this #LimitCORE=infinity +#hardening +ProtectControlGroups=true +ProtectKernelModules=true +ProtectKernelTunables=true +NoNewPrivileges=true +RestrictNamespaces=true +ProtectSystem=full +ReadWritePaths=-/var/lib/i2pd +ReadWritePaths=-/run/i2pd +ReadWritePaths=-/etc/i2pd [Install] WantedBy=multi-user.target