From 5e3578ef0d86feac33ccf96a0afe267c8115bf72 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 3 Dec 2022 11:42:40 +0000 Subject: [PATCH] Allow CAP_SYS_RAWIO for the smart collector --- cookbooks/hardware/recipes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 6095cceeb..3d1d8aa19 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -536,7 +536,7 @@ if disks.count.positive? prometheus_collector "smart" do interval "15m" user "root" - capability_bounding_set "CAP_SYS_ADMIN" + capability_bounding_set %w[CAP_SYS_ADMIN CAP_SYS_RAWIO] private_devices false private_users false protect_clock false -- 2.39.5