From 1d45e8ec2e4a81330354743e09f80b4add01d7ae Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 26 Jun 2022 23:07:00 +0100 Subject: [PATCH] feat(profiles): add do-release-upgrade. --- apparmor.d/groups/ubuntu/do-release-upgrade | 34 +++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 apparmor.d/groups/ubuntu/do-release-upgrade 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