]> git.openstreetmap.org Git - chef.git/commitdiff
Use default sandboxing for the oxidized service
authorTom Hughes <tom@compton.nu>
Wed, 16 Nov 2022 20:26:32 +0000 (20:26 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 16 Nov 2022 20:37:29 +0000 (20:37 +0000)
cookbooks/oxidized/recipes/default.rb

index 4d1da0343e17997a33c2996afe08bcacd3e57973..7e4803c70299c3554f97eb9c06e9f623ed0ec88b 100644 (file)
@@ -147,11 +147,8 @@ systemd_service "oxidized" do
   environment "OXIDIZED_HOME" => "/etc/oxidized",
               "OXIDIZED_LOGS" => "/var/log/oxidized"
   nice 10
-  private_tmp true
-  private_devices true
-  protect_system "full"
-  protect_home true
-  no_new_privileges true
+  sandbox :enable_network => true
+  read_write_paths ["/run/oxidized", "/var/lib/oxidized", "/var/log/oxidized"]
   restart "on-failure"
   notifies :restart, "service[oxidized]"
 end