feat(profile): add debconf-escape, update dpkg-scripts.
This commit is contained in:
parent
8546533ad1
commit
813758a1e0
3 changed files with 34 additions and 1 deletions
19
apparmor.d/groups/apt/debconf-escape
Normal file
19
apparmor.d/groups/apt/debconf-escape
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/4.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/debconf-escape
|
||||
profile debconf-escape @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/perl>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
include if exists <local/debconf-escape>
|
||||
}
|
||||
|
||||
# vim:syntax=apparmor
|
||||
|
|
@ -26,11 +26,12 @@ profile dpkg-scripts @{exec_path} {
|
|||
@{coreutils_path} rix,
|
||||
@{bin}/run-parts rix,
|
||||
|
||||
@{bin}/setpriv ix,
|
||||
@{bin}/envsubst ix,
|
||||
@{bin}/file ix,
|
||||
@{bin}/getent ix,
|
||||
@{bin}/gzip ix,
|
||||
@{bin}/helpztags ix,
|
||||
@{bin}/setpriv ix,
|
||||
@{bin}/tput ix,
|
||||
@{bin}/zcat ix,
|
||||
@{lib}/ubuntu-advantage/cloud-id-shim.sh ix,
|
||||
|
|
@ -97,6 +98,18 @@ profile dpkg-scripts @{exec_path} {
|
|||
capability sys_ptrace,
|
||||
capability sys_resource,
|
||||
|
||||
@{bin}/systemd-tty-ask-password-agent Px,
|
||||
@{pager_path} Px -> child-pager,
|
||||
|
||||
/{run,var}/log/journal/ r,
|
||||
/{run,var}/log/journal/@{hex32}/ r,
|
||||
/{run,var}/log/journal/@{hex32}/system.journal* r,
|
||||
/{run,var}/log/journal/@{hex32}/system@@{hex}-@{hex}.journal* r,
|
||||
/{run,var}/log/journal/@{hex32}/system@@{hex32}-@{hex16}-@{hex16}.journal* r,
|
||||
/{run,var}/log/journal/@{hex32}/user-@{hex}.journal* r,
|
||||
/{run,var}/log/journal/@{hex32}/user-@{uid}@@{hex}-@{hex}.journal* r,
|
||||
/{run,var}/log/journal/@{hex32}/user-@{uid}@@{hex32}-@{hex16}-@{hex16}.journal* r,
|
||||
|
||||
@{run}/utmp rk,
|
||||
|
||||
include if exists <local/dpkg-scripts_systemctl>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue