From f4dd2745d1d756e268f2e7db917d880c32ac77da Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Tue, 19 Jul 2022 00:03:01 +0100 Subject: [PATCH] feat(profiles): add software-properties-dbus. --- .../groups/ubuntu/software-properties-dbus | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 apparmor.d/groups/ubuntu/software-properties-dbus diff --git a/apparmor.d/groups/ubuntu/software-properties-dbus b/apparmor.d/groups/ubuntu/software-properties-dbus new file mode 100644 index 00000000..dd542213 --- /dev/null +++ b/apparmor.d/groups/ubuntu/software-properties-dbus @@ -0,0 +1,36 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}lib/software-properties/software-properties-dbus +profile software-properties-dbus @{exec_path} { + include + include + include + include + include + + dbus bind bus=system + name=com.ubuntu.SoftwareProperties, + + @{exec_path} mr, + + /{usr/,}bin/python3.[0-9]* rix, + /{usr/,}bin/env rix, + /{usr/,}bin/lsb_release rPx -> lsb_release, + + /usr/share/python-apt/{,**} r, + /usr/share/distro-info/*.csv r, + /usr/share/xml/iso-codes/{,**} r, + + owner /tmp/[a-z0-9]* rw, + owner /tmp/tmp*/{,apt.conf} rw, + + owner @{PROC}/@{pid}/fd/ r, + + include if exists +} \ No newline at end of file