apparmor.d/apparmor.d/groups/apt/aptitude-run-state-bundle

29 lines
694 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2020-2021 Mikhail Morfikov
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/aptitude-run-state-bundle
profile aptitude-run-state-bundle @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
include <abstractions/user-download-strict>
@{exec_path} r,
@{bin}/{,ba,da}sh rix,
@{bin}/tar rix,
@{bin}/bzip2 rix,
@{bin}/mktemp rix,
@{bin}/rm rix,
@{bin}/aptitude-curses rPx,
owner /tmp/aptitudebug.*/{,**} rw,
include if exists <local/aptitude-run-state-bundle>
}