From 21cce0b93de70585e65ec47daa13bcd20dd1f303 Mon Sep 17 00:00:00 2001 From: liberodark Date: Mon, 14 Sep 2026 11:21:04 +0200 Subject: [PATCH] nixos/glpi-agent: fix cpu and memory reporting in inventory --- nixos/modules/services/monitoring/glpi-agent.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/monitoring/glpi-agent.nix b/nixos/modules/services/monitoring/glpi-agent.nix index 4d0407e1a5f8..17845506b910 100644 --- a/nixos/modules/services/monitoring/glpi-agent.nix +++ b/nixos/modules/services/monitoring/glpi-agent.nix @@ -95,8 +95,8 @@ in DynamicUser = true; StateDirectory = "glpi-agent"; - CapabilityBoundingSet = [ "CAP_SYS_ADMIN" ]; - AmbientCapabilities = [ "CAP_SYS_ADMIN" ]; + CapabilityBoundingSet = [ "CAP_DAC_READ_SEARCH" ]; + AmbientCapabilities = [ "CAP_DAC_READ_SEARCH" ]; LimitCORE = 0; LimitNOFILE = 65535; @@ -104,7 +104,7 @@ in MemorySwapMax = 0; MemoryZSwapMax = 0; PrivateTmp = true; - ProcSubset = "pid"; + ProcSubset = "all"; ProtectClock = true; ProtectControlGroups = true; ProtectHome = true;