53 lines
1.3 KiB
Text
53 lines
1.3 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/do-release-upgrade
|
|
profile do-release-upgrade @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/common/apt>
|
|
include <abstractions/consoles>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/python>
|
|
include <abstractions/ssl_certs>
|
|
|
|
capability net_admin,
|
|
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network netlink raw,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{bin}/dpkg rPx -> child-dpkg,
|
|
@{bin}/ischroot rPx,
|
|
@{bin}/lsb_release rPx,
|
|
|
|
/usr/share/distro-info/*.csv r,
|
|
/usr/share/ubuntu-release-upgrader/{,**} r,
|
|
|
|
/etc/machine-id r,
|
|
/etc/update-manager/{,**} r,
|
|
|
|
/var/lib/ubuntu-release-upgrader/release-upgrade-available rw,
|
|
/var/lib/update-manager/* rw,
|
|
|
|
/var/cache/apt/ rw,
|
|
/var/cache/apt/pkgcache.bin rw,
|
|
/var/cache/apt/pkgcache.bin.@{rand6} rw,
|
|
/var/cache/apt/srcpkgcache.bin rw,
|
|
/var/cache/apt/srcpkgcache.bin.@{rand6} rw,
|
|
|
|
@{PROC}/@{pids}/mountinfo r,
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
|
|
include if exists <local/do-release-upgrade>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|