diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-01-27 13:35:32 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-01-27 13:49:25 +0100 |
commit | f860b289d4d7a45c38b7dbe8f74bf0d09d86f313 (patch) | |
tree | f550e4a9ce138a1fa5e51fb138bf1086cccc0e58 /nixos/modules/services/monitoring | |
parent | 2d34099b4c9aa0b0d55f1656c1063049ffcd29b8 (diff) |
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.nix | 2 |
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 b6416b93e69c4..437604748b3e4 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"; |