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 {