From: Tom Hughes Date: Thu, 17 Nov 2022 18:49:12 +0000 (+0000) Subject: Use default sandboxing for mapserv services X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/135166270016c1fe9ec42f1555141a857e7da097 Use default sandboxing for mapserv services --- diff --git a/cookbooks/imagery/resources/site.rb b/cookbooks/imagery/resources/site.rb index b5d50ee34..4fca7bb9a 100644 --- a/cookbooks/imagery/resources/site.rb +++ b/cookbooks/imagery/resources/site.rb @@ -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