File harden_frm_xfrd@.service.patch of Package xrootd

Index: xrootd-5.5.0/packaging/common/frm_xfrd@.service
===================================================================
--- xrootd-5.5.0.orig/packaging/common/frm_xfrd@.service
+++ xrootd-5.5.0/packaging/common/frm_xfrd@.service
@@ -6,6 +6,17 @@ Requires=network-online.target
 After=network-online.target
 
 [Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+PrivateDevices=true
+ProtectHostname=true
+ProtectClock=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
 ExecStart=/usr/bin/frm_xfrd -l /var/log/xrootd/frm_xfrd.log -c /etc/xrootd/xrootd-%i.cfg -k fifo -s /run/xrootd/frm_xfrd-%i.pid -n %i
 User=xrootd
 Group=xrootd
openSUSE Build Service is sponsored by