File harden_hsqldb.service.patch of Package hsqldb

Index: hsqldb/sample/hsqldb.service
===================================================================
--- hsqldb.orig/sample/hsqldb.service
+++ hsqldb/sample/hsqldb.service
@@ -17,6 +17,19 @@ Description=HyperSQL Database Server
 After=socket.service
 
 [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 
 # TODO!  Change these paths to point to the absolute path of the "hsqldb.init"
 # script in your HyperSQL distribution:
 ExecStart=/local/hsqldb-2.3.4/sample/hsqldb.init start
openSUSE Build Service is sponsored by