]> git.openstreetmap.org Git - chef.git/commitdiff
Add no_new_privilegese to some additional services
authorTom Hughes <tom@compton.nu>
Wed, 2 Nov 2022 19:14:34 +0000 (19:14 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 2 Nov 2022 19:15:00 +0000 (19:15 +0000)
cookbooks/blogs/recipes/default.rb
cookbooks/dns/recipes/default.rb
cookbooks/geoipupdate/recipes/default.rb
cookbooks/tilelog/recipes/default.rb

index 681118f959f5dbcf1a56b8f1932cdc9f4f29e8b0..c4d425a5634151cecb93e54beb0169908c3feeae 100644 (file)
@@ -87,6 +87,7 @@ systemd_service "blogs-update" do
   protect_system "strict"
   protect_home true
   read_write_paths "/srv/blogs.openstreetmap.org"
+  no_new_privileges true
 end
 
 systemd_timer "blogs-update" do
index 7b8c5b6e7278c3bc06a64d59f52760aea8a0fa82..d25c4573177fe57c43fa6ba8fbfba110eda859e0 100644 (file)
@@ -178,6 +178,7 @@ systemd_service "dns-check" do
   protect_system "strict"
   protect_home true
   read_write_paths "/var/lib/dns"
+  no_new_privileges true
 end
 
 systemd_timer "dns-check" do
index 417d3201353a7a9ace9240812fcfcf6a1714c1c2..c11b451dc4645f28d3d12198e5ba2358ca71ec87 100644 (file)
@@ -47,6 +47,7 @@ systemd_service "geoipupdate" do
   protect_system "strict"
   protect_home true
   read_write_paths node[:geoipupdate][:directory]
+  no_new_privileges true
 end
 
 systemd_timer "geoipupdate" do
index b911dacffc8040950b2433b40dc012a6342798bc..8a53bab547ac34d5d3e701d2aeefd9c3a60b9cf0 100644 (file)
@@ -60,6 +60,7 @@ systemd_service "tilelog" do
   protect_system "strict"
   protect_home true
   read_write_paths tilelog_output_directory
+  no_new_privileges true
 end
 
 systemd_timer "tilelog" do