39 lines
821 B
Text
39 lines
821 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021 Mikhail Morfikov
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}bin/apt-forktracer
|
|
profile apt-forktracer @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/python>
|
|
include <abstractions/apt-common>
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/ r,
|
|
/{usr/,}bin/dpkg rPx -> child-dpkg,
|
|
/{usr/,}bin/apt-cache rPx,
|
|
|
|
/usr/share/apt-forktracer/{,**} r,
|
|
|
|
/var/lib/apt/lists/ r,
|
|
/var/lib/apt/lists/*_InRelease r,
|
|
|
|
/var/cache/apt/pkgcache.bin{,.*} rw,
|
|
|
|
/usr/share/distro-info/debian.csv r,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
|
|
/var/lib/dbus/machine-id r,
|
|
/etc/machine-id r,
|
|
|
|
/etc/dpkg/origins/debian r,
|
|
/etc/debian_version r,
|
|
|
|
include if exists <local/apt-forktracer>
|
|
}
|