summaryrefslogtreecommitdiff
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-31 17:40:11 +0100
commited0cb8aa191b7f9b55e445088190b824606e0eb2 (patch)
tree46b59ef48fa540562b5a532ea3a4a8f67dde1a70
parentMerge pull request #157453 from NixOS/backport-157286-to-release-21.11 (diff)
downloadnixpkgs-ed0cb8aa191b7f9b55e445088190b824606e0eb2.tar.gz
prometheus.exporters.smartctl: Allow RAWIO
This allows the exporter to perform SCSI commands and interact with hpsa and cciss devices. (cherry picked from commit f860b289d4d7a45c38b7dbe8f74bf0d09d86f313)
-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";