X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/330b3f748baa6e05229a174415965a065e2f7f0c..428a89f777e40b1476e6afc63583fb19f45ff110:/cookbooks/dev/recipes/default.rb diff --git a/cookbooks/dev/recipes/default.rb b/cookbooks/dev/recipes/default.rb index 9ad37bfc9..385c3a002 100644 --- a/cookbooks/dev/recipes/default.rb +++ b/cookbooks/dev/recipes/default.rb @@ -290,12 +290,8 @@ if node[:postgresql][:clusters][:"14/main"] exec_start "#{node[:ruby][:bundle]} exec rails jobs:work" restart "on-failure" nice 10 - private_tmp true - private_devices true - protect_system "strict" - protect_home true + sandbox :enable_network => true read_write_paths "/srv/%i.apis.dev.openstreetmap.org/logs" - no_new_privileges true end systemd_service "cgimap@" do @@ -305,12 +301,8 @@ if node[:postgresql][:clusters][:"14/main"] user "apis" exec_start "/srv/%i.apis.dev.openstreetmap.org/cgimap/openstreetmap-cgimap --daemon --port $CGIMAP_PORT --instances 5" exec_reload "/bin/kill -HUP $MAINPID" - private_tmp true - private_devices true - protect_system "strict" - protect_home true + sandbox :enable_network => true read_write_paths ["/srv/%i.apis.dev.openstreetmap.org/logs", "/srv/%i.apis.dev.openstreetmap.org/rails/tmp"] - no_new_privileges true restart "on-failure" end