From e46e9cfcf4b58ba423c49f51bcc8c7ca9913838d Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sat, 21 May 2022 17:09:12 +0100 Subject: [PATCH] feat(profiles): add boltd. --- apparmor.d/profiles-a-f/boltd | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 apparmor.d/profiles-a-f/boltd diff --git a/apparmor.d/profiles-a-f/boltd b/apparmor.d/profiles-a-f/boltd new file mode 100644 index 00000000..2eed5450 --- /dev/null +++ b/apparmor.d/profiles-a-f/boltd @@ -0,0 +1,41 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{libexec}/boltd +profile boltd @{exec_path} { + include + include + + capability net_admin, + + network netlink raw, + + @{exec_path} mr, + + /var/lib/boltd/{,**} rw, + + owner @{run}/boltd/{,**} rw, + + @{run}/udev/data/+thunderbolt:* r, + + @{sys}/bus/ r, + @{sys}/bus/thunderbolt/devices/ r, + @{sys}/bus/wmi/devices/ r, + @{sys}/class/ r, + @{sys}/devices/pci[0-9]*/**/device r, + @{sys}/devices/pci[0-9]*/**/domain[0-9]*/{security,uevent} r, + @{sys}/devices/pci[0-9]*/**/domain[0-9]*/**/ r, + @{sys}/devices/pci[0-9]*/**/domain[0-9]*/**/{authorized,generation} r, + @{sys}/devices/pci[0-9]*/**/domain[0-9]*/**/{uevent,unique_id} r, + @{sys}/devices/pci[0-9]*/**/domain[0-9]*/iommu_dma_protection r, + @{sys}/devices/platform/**/uevent r, + @{sys}/devices/virtual/dmi/id/product_name r, + @{sys}/devices/virtual/dmi/id/sys_vendor r, + + include if exists +} \ No newline at end of file