# apparmor.d - Full set of apparmor profiles # Copyright (C) 2022-2024 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = @{bin}/do-release-upgrade profile do-release-upgrade @{exec_path} { include include include include include include 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 rix, @{bin}/lsb_release rPx -> lsb_release, /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 } # vim:syntax=apparmor