]> git.openstreetmap.org Git - chef.git/commitdiff
Allow CAP_DAC_OVERRIDE for the ohai collector
authorTom Hughes <tom@compton.nu>
Sat, 3 Dec 2022 17:10:42 +0000 (17:10 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 3 Dec 2022 17:11:30 +0000 (17:11 +0000)
cookbooks/hardware/recipes/default.rb

index 3d1d8aa1986d2ea53842eb7a3c141bdda550883f..a62288f22b98c78074671ae877d100b7b71a22a5 100644 (file)
@@ -700,7 +700,7 @@ prometheus_collector "ohai" do
   interval "15m"
   user "root"
   proc_subset "all"
-  capability_bounding_set "CAP_SYS_ADMIN"
+  capability_bounding_set %w[CAP_SYS_ADMIN CAP_DAC_OVERRIDE]
   private_devices false
   private_users false
   protect_clock false