about summary refs log tree commit diff
path: root/nixos/modules/services/monitoring
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-01-27 13:35:32 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-01-27 13:49:25 +0100
commitf860b289d4d7a45c38b7dbe8f74bf0d09d86f313 (patch)
treef550e4a9ce138a1fa5e51fb138bf1086cccc0e58 /nixos/modules/services/monitoring
parent2d34099b4c9aa0b0d55f1656c1063049ffcd29b8 (diff)
downloadnixlib-f860b289d4d7a45c38b7dbe8f74bf0d09d86f313.tar
nixlib-f860b289d4d7a45c38b7dbe8f74bf0d09d86f313.tar.gz
nixlib-f860b289d4d7a45c38b7dbe8f74bf0d09d86f313.tar.bz2
nixlib-f860b289d4d7a45c38b7dbe8f74bf0d09d86f313.tar.lz
nixlib-f860b289d4d7a45c38b7dbe8f74bf0d09d86f313.tar.xz
nixlib-f860b289d4d7a45c38b7dbe8f74bf0d09d86f313.tar.zst
nixlib-f860b289d4d7a45c38b7dbe8f74bf0d09d86f313.zip
prometheus.exporters.smartctl: Allow RAWIO
This allows the exporter to perform SCSI commands and interact with hpsa
and cciss devices.
Diffstat (limited to 'nixos/modules/services/monitoring')
-rw-r--r--nixos/modules/services/monitoring/prometheus/exporters/smartctl.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/exporters/smartctl.nix b/nixos/modules/services/monitoring/prometheus/exporters/smartctl.nix
index b6416b93e69c..437604748b3e 100644
--- a/nixos/modules/services/monitoring/prometheus/exporters/smartctl.nix
+++ b/nixos/modules/services/monitoring/prometheus/exporters/smartctl.nix
@@ -41,9 +41,11 @@ in {
   serviceOpts = {
     serviceConfig = {
       AmbientCapabilities = [
+        "CAP_RAW_SYSIO"
         "CAP_SYS_ADMIN"
       ];
       CapabilityBoundingSet = [
+        "CAP_RAW_SYSIO"
         "CAP_SYS_ADMIN"
       ];
       DevicePolicy = "closed";