From 63d030947084e16796f095ba73573dc081572ede0806e592659149c9e9d2c416 Mon Sep 17 00:00:00 2001 From: Lars Vogdt Date: Tue, 9 Apr 2024 09:39:04 +0000 Subject: [PATCH] Accepting request 1166211 from home:oertel:branches:server:monitoring - update apparmor profiles: - check_load: allow to read /run/systemd/sessions/1 while we still have to use "uptime" (upstream issue 1999) - check_disk: allow to read /proc/pid/mountinfo OBS-URL: https://build.opensuse.org/request/show/1166211 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=122 --- monitoring-plugins.changes | 8 ++++++++ usr.lib.nagios.plugins.check_disk | 3 ++- usr.lib.nagios.plugins.check_load | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/monitoring-plugins.changes b/monitoring-plugins.changes index b2e8818..3772609 100644 --- a/monitoring-plugins.changes +++ b/monitoring-plugins.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Apr 8 15:31:23 CEST 2024 - ro@suse.de + +- update apparmor profiles: + - check_load: allow to read /run/systemd/sessions/1 while we + still have to use "uptime" (upstream issue 1999) + - check_disk: allow to read /proc/pid/mountinfo + ------------------------------------------------------------------- Tue Feb 27 15:19:55 UTC 2024 - Lars Vogdt diff --git a/usr.lib.nagios.plugins.check_disk b/usr.lib.nagios.plugins.check_disk index a553324..430437a 100644 --- a/usr.lib.nagios.plugins.check_disk +++ b/usr.lib.nagios.plugins.check_disk @@ -4,6 +4,7 @@ #include #include /etc/mtab r, - @{PROC}/[0-9]*/mounts r, + @{PROC}/@{pid}/mounts r, + @{PROC}/@{pid}/mountinfo r, /usr/lib/nagios/plugins/check_disk rm, } diff --git a/usr.lib.nagios.plugins.check_load b/usr.lib.nagios.plugins.check_load index 40a8998..38fb97f 100644 --- a/usr.lib.nagios.plugins.check_load +++ b/usr.lib.nagios.plugins.check_load @@ -8,4 +8,5 @@ /proc/uptime r, /proc/meminfo r, /proc/loadavg r, + /run/systemd/sessions/1 r, }