From 689f48b217b060b517b8095e5899fd1e0eadf4d8 Mon Sep 17 00:00:00 2001 From: Jeroen Rijken Date: Sat, 13 Aug 2022 16:48:16 +0200 Subject: [PATCH] motd fixes --- apparmor.d/groups/ssh/sshd | 1 + apparmor.d/profiles-m-r/run-parts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/apparmor.d/groups/ssh/sshd b/apparmor.d/groups/ssh/sshd index ff37f0ca..01615f94 100644 --- a/apparmor.d/groups/ssh/sshd +++ b/apparmor.d/groups/ssh/sshd @@ -83,6 +83,7 @@ profile sshd @{exec_path} flags=(attach_disconnected) { owner @{HOME}/@{XDG_SSH_DIR}/authorized_keys{,.*} r, owner @{run}/sshd{,.init}.pid wl, + @{run}/motd.d/{,*} r, @{run}/motd.dynamic rw, @{run}/motd.dynamic.new rw, @{run}/resolvconf/resolv.conf r, diff --git a/apparmor.d/profiles-m-r/run-parts b/apparmor.d/profiles-m-r/run-parts index a7d9750d..7b2694f3 100644 --- a/apparmor.d/profiles-m-r/run-parts +++ b/apparmor.d/profiles-m-r/run-parts @@ -138,6 +138,8 @@ profile run-parts @{exec_path} { /var/lib/update-notifier/updates-available r, + @{run}/motd.d/{,*} r, + } profile kernel {