feat(fsp): setup RBAC mapping in auth enabled profiles.

This commit is contained in:
Alexandre Pujol 2025-05-31 13:43:57 +02:00
parent d9e6e686e0
commit 2282128cbd
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
6 changed files with 45 additions and 10 deletions

View file

@ -0,0 +1,30 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
# It is used by su/sudo to run pre login scripts (as root) such as the motd.
# After the login, Apparmor libpam will transition to the roles defined in
# other files under <mappings/sudo>
@{shells_path} rCx -> shell,
profile shell flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/shells>
@{shells_path} rix,
@{bin}/env rix,
@{bin}/run-parts rix, #aa:only apt
#aa:only apt
/etc/update-motd.d/ r,
/etc/update-motd.d/* rPx,
/usr/share/landscape/landscape-sysinfo.wrapper rPx,
@{run}/motd.dynamic.new rw, #aa:only apt
include if exists <local/mappings/sudo/shell>
}
# vim:syntax=apparmor