Dirk Mueller
67fb7da0e0
Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort OBS-URL: https://build.opensuse.org/request/show/932193 OBS-URL: https://build.opensuse.org/package/show/network/rpcbind?expand=0&rev=101
25 lines
798 B
Diff
25 lines
798 B
Diff
Index: rpcbind-1.2.6/systemd/rpcbind.service.in
|
|
===================================================================
|
|
--- rpcbind-1.2.6.orig/systemd/rpcbind.service.in
|
|
+++ rpcbind-1.2.6/systemd/rpcbind.service.in
|
|
@@ -11,6 +11,19 @@ Wants=rpcbind.target
|
|
After=sysinit.target
|
|
|
|
[Service]
|
|
+# added automatically, for details please see
|
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
+ProtectSystem=full
|
|
+ProtectHome=true
|
|
+PrivateDevices=true
|
|
+ProtectHostname=true
|
|
+ProtectClock=true
|
|
+ProtectKernelTunables=true
|
|
+ProtectKernelModules=true
|
|
+ProtectKernelLogs=true
|
|
+ProtectControlGroups=true
|
|
+RestrictRealtime=true
|
|
+# end of automatic additions
|
|
Type=notify
|
|
# distro can provide a drop-in adding EnvironmentFile=-/??? if needed.
|
|
EnvironmentFile=-/etc/sysconfig/rpcbind
|