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

@ -15,6 +15,7 @@ profile chfn @{exec_path} {
include <abstractions/consoles>
include <abstractions/nameservice-strict>
include <abstractions/wutmp>
include <mappings/shadow> #aa:only RBAC
capability audit_write,
capability chown,

View file

@ -15,6 +15,7 @@ profile chsh @{exec_path} {
include <abstractions/consoles>
include <abstractions/nameservice-strict>
include <abstractions/wutmp>
include <mappings/shadow> #aa:only RBAC
capability audit_write,
capability chown,

View file

@ -14,6 +14,7 @@ profile login @{exec_path} flags=(attach_disconnected) {
include <abstractions/consoles>
include <abstractions/nameservice-strict>
include <abstractions/wutmp>
include <mappings/login> #aa:only RBAC
capability audit_write,
capability chown,
@ -38,7 +39,7 @@ profile login @{exec_path} flags=(attach_disconnected) {
@{exec_path} mr,
@{shells_path} rUx,
@{shells_path} Ux, #aa:exclude RBAC
@{etc_ro}/environment r,
@{etc_ro}/security/group.conf r,

View file

@ -12,6 +12,7 @@ profile su @{exec_path} {
include <abstractions/base>
include <abstractions/app-launcher-root>
include <abstractions/app/sudo>
include <mappings/su> #aa:only RBAC
capability chown, # pseudo-terminal
@ -21,8 +22,8 @@ profile su @{exec_path} {
@{exec_path} mr,
@{bin}/@{shells} rUx,
@{sbin}/nologin rPx,
@{bin}/@{shells} Ux, #aa:exclude RBAC
@{sbin}/nologin Px,
@{etc_ro}/default/su r,
/etc/default/locale r,