diff --git a/apparmor.d/groups/ubuntu/do-release-upgrade b/apparmor.d/groups/ubuntu/do-release-upgrade new file mode 100644 index 00000000..1d8f91cd --- /dev/null +++ b/apparmor.d/groups/ubuntu/do-release-upgrade @@ -0,0 +1,34 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/do-release-upgrade +profile do-release-upgrade @{exec_path} { + include + include + include + include + include + include + + @{exec_path} mr, + + /{usr/,}bin/dpkg rPx -> child-dpkg, + /{usr/,}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/update-manager/meta-release-* rw, + + owner @{PROC}/@{pid}/fd/ r, + + include if exists +} \ No newline at end of file