diff --git a/apparmor.d/profiles-m-r/motd b/apparmor.d/profiles-m-r/motd index 414512c89..50848028e 100644 --- a/apparmor.d/profiles-m-r/motd +++ b/apparmor.d/profiles-m-r/motd @@ -17,18 +17,12 @@ profile motd @{exec_path} { @{exec_path} mr, - @{sh_path} rix, - @{bin}/{e,}grep rix, - @{bin}/cat rix, - @{bin}/cut rix, - @{bin}/find rix, - @{bin}/head rix, - @{bin}/hostname rPx, - @{bin}/id rix, - @{bin}/snap rPx, - @{bin}/sort rix, - @{bin}/tr rix, - @{bin}/uname rPx, + @{sh_path} rix, + @{coreutils_path} rix, + @{bin}/cloud-id rix, + @{bin}/hostname rPx, + @{bin}/snap rPx, + @{bin}/wget rix, @{lib}/ubuntu-release-upgrader/release-upgrade-motd rPx, @{lib}/update-notifier/update-motd-fsck-at-reboot rPx, @@ -45,6 +39,8 @@ profile motd @{exec_path} { /var/lib/update-notifier/updates-available r, /var/lib/ubuntu-advantage/messages/motd-esm-announce r, + /tmp/tmp.@{rand10} w, + @{run}/motd.d/{,*} r, @{run}/motd.dynamic.new rw,