From 4d9a5d6c4de825afd4d32d981e0a7c59421a381e Mon Sep 17 00:00:00 2001 From: nobodysu Date: Sat, 4 Jun 2022 12:29:21 +0000 Subject: [PATCH] Update spectre-meltdown-checker --- apparmor.d/profiles-s-z/spectre-meltdown-checker | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/apparmor.d/profiles-s-z/spectre-meltdown-checker b/apparmor.d/profiles-s-z/spectre-meltdown-checker index 5ff0cce5f..572d2936a 100644 --- a/apparmor.d/profiles-s-z/spectre-meltdown-checker +++ b/apparmor.d/profiles-s-z/spectre-meltdown-checker @@ -9,6 +9,7 @@ include @{exec_path} = /{,usr/}{,local/}bin/spectre-meltdown-checker{,.sh} profile spectre-meltdown-checker @{exec_path} { include + include # Needed to read the /dev/cpu/[0-9]*/msr device capability sys_rawio, @@ -56,11 +57,13 @@ profile spectre-meltdown-checker @{exec_path} { /{usr/,}bin/{,@{multiarch}-}strings rix, /{usr/,}bin/{,@{multiarch}-}objdump rix, /{usr/,}{s,}bin/iucode_tool rix, + /{usr/,}{s,}bin/rdmsr rix, /{usr/,}bin/dmesg rix, /{usr/,}bin/mount rix, /{usr/,}bin/find rix, /{usr/,}bin/xargs rix, /{usr/,}bin/readlink rix, + /{usr/,}bin/nproc rix, /{usr/,}bin/pgrep rCx -> pgrep, /{usr/,}bin/ccache rCx -> ccache, @@ -99,8 +102,8 @@ profile spectre-meltdown-checker @{exec_path} { @{PROC}/modules r, # find and denoise - @{PROC}/@{pid}/{status,exe} r, - @{PROC}/@{pid}/fd/ r, + @{PROC}/@{pids}/{status,exe} r, + @{PROC}/@{pids}/fd/ r, @{PROC}/*/ r, /var/lib/dbus/machine-id r, @@ -124,10 +127,12 @@ profile spectre-meltdown-checker @{exec_path} { /etc/debian_version r, + include if exists } profile pgrep { include + include /{usr/,}bin/pgrep mr, @@ -137,6 +142,7 @@ profile spectre-meltdown-checker @{exec_path} { @{PROC}/sys/kernel/osrelease r, @{PROC}/uptime r, + include if exists } profile mcedb { @@ -158,10 +164,12 @@ profile spectre-meltdown-checker @{exec_path} { /usr/share/publicsuffix/public_suffix_list.* r, + include if exists } profile kmod { include + include capability sys_module, @@ -175,6 +183,7 @@ profile spectre-meltdown-checker @{exec_path} { @{PROC}/cmdline r, + include if exists } include if exists