]> git.openstreetmap.org Git - chef.git/commitdiff
Use default sandboxing for the dns-check service
authorTom Hughes <tom@compton.nu>
Tue, 8 Nov 2022 22:52:26 +0000 (22:52 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 9 Nov 2022 19:02:21 +0000 (19:02 +0000)
cookbooks/dns/recipes/default.rb

index 1cc1b1e84df079381bdf430339ca6f5560a2c726..856dcfcb002072f3d8592b29d81905a3d3ac2004 100644 (file)
@@ -174,12 +174,9 @@ systemd_service "dns-check" do
   description "Rebuild DNS zones with GeoDNS changes"
   exec_start "/usr/local/bin/dns-check"
   user "git"
-  private_tmp true
-  private_devices true
-  protect_system "strict"
-  protect_home true
+  sandbox :enable_network => true
+  proc_subset "all"
   read_write_paths "/var/lib/dns"
-  no_new_privileges true
 end
 
 systemd_timer "dns-check" do