]> git.openstreetmap.org Git - chef.git/commitdiff
Use default sandboxing for the geoipupdate service
authorTom Hughes <tom@compton.nu>
Wed, 9 Nov 2022 22:40:35 +0000 (22:40 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 9 Nov 2022 22:53:01 +0000 (22:53 +0000)
cookbooks/geoipupdate/recipes/default.rb

index c11b451dc4645f28d3d12198e5ba2358ca71ec87..17fcc0850df25501496635a42046430b85a8711f 100644 (file)
@@ -42,12 +42,8 @@ systemd_service "geoipupdate" do
   description "Update GeoIP databases"
   user "root"
   exec_start "/usr/bin/geoipupdate"
-  private_tmp true
-  private_devices true
-  protect_system "strict"
-  protect_home true
+  sandbox :enable_network => true
   read_write_paths node[:geoipupdate][:directory]
-  no_new_privileges true
 end
 
 systemd_timer "geoipupdate" do