feat(profiles): new children group.
This group is reserved for profile without an attachment path because it is ended to be used only via "Px -> <profile-name>".
This commit is contained in:
parent
42f305b244
commit
205c2d7184
1 changed files with 0 additions and 0 deletions
38
apparmor.d/groups/children/child-pager
Normal file
38
apparmor.d/groups/children/child-pager
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2020-2022 Mikhail Morfikov
|
||||
# Copyright (C) 2021-2022 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
# Note: This profile does not specify an attachment path because it is
|
||||
# intended to be used only via "Px -> child-pager" exec transitions from
|
||||
# other profiles. We want to confine the pager(1) utility when it
|
||||
# is invoked from other confined applications, but not when it is used
|
||||
# in regular (unconfined) shell scripts or run directly by the user.
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
# Do not attach to /{usr/,}bin/pager by default
|
||||
profile child-pager {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
|
||||
capability dac_override,
|
||||
capability dac_read_search,
|
||||
|
||||
signal (receive) set=(stop, cont, term, kill),
|
||||
|
||||
/{usr/,}bin/ r,
|
||||
/{usr/,}bin/pager mr,
|
||||
/{usr/,}bin/less mr,
|
||||
/{usr/,}bin/more mr,
|
||||
|
||||
@{system_share_dirs}/terminfo/{,**} r,
|
||||
|
||||
owner @{HOME}/ r,
|
||||
owner @{HOME}/.lesshs* rw,
|
||||
owner @{user_cache_dirs}/lesshs* rw,
|
||||
|
||||
include if exists <local/child-pager>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue