]> git.openstreetmap.org Git - chef.git/commitdiff
Use default sandboxing for mapserv services
authorTom Hughes <tom@compton.nu>
Thu, 17 Nov 2022 18:49:12 +0000 (18:49 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 17 Nov 2022 18:49:12 +0000 (18:49 +0000)
cookbooks/imagery/resources/site.rb

index b5d50ee349bf992ae1eb93446972ebbd4336b499..4fca7bb9ad770061c9653e9818800f8ff51ab27b 100644 (file)
@@ -113,12 +113,8 @@ action :create do
     group "imagery"
     exec_start "/usr/bin/multiwatch -f 8 --signal=TERM -- /usr/lib/cgi-bin/mapserv"
     standard_input "socket"
-    private_tmp true
-    private_devices true
-    private_network true
-    protect_system "full"
-    protect_home true
-    no_new_privileges true
+    sandbox true
+    restrict_address_families "AF_UNIX"
     # Terminate service after 30mins. Service is socket activated
     runtime_max_sec 1800
   end