From 1dbced42ed75c182cd5caf630d67efa62b8858e2 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Fri, 18 Aug 2023 22:35:32 +0100 Subject: [PATCH] feat(tunables): add a new @{pci} variable. --- apparmor.d/tunables/multiarch.d/apparmor.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apparmor.d/tunables/multiarch.d/apparmor.d b/apparmor.d/tunables/multiarch.d/apparmor.d index d1fe3dff..10fcc09d 100644 --- a/apparmor.d/tunables/multiarch.d/apparmor.d +++ b/apparmor.d/tunables/multiarch.d/apparmor.d @@ -30,6 +30,11 @@ # Hexadecimal @{hex}=@{h}*@{h} +# Shortcut for PCI device +@{pci_id}=[0-9][0-9][0-9][0-9]:[0-9][0-9]:[0-9a-f][0-9a-f].[0-9] +@{pci_bus}=pci[0-9][0-9][0-9][0-9]:[0-9][0-9] +@{pci}=@{pci_bus}/@{pci_id}{,/@{pci_id}} + # Date and time @{date}=[0-2][0-9][0-9][0-9]-[01][0-9]-[0-3][0-9] @{time}={[0-2],}[0-9]-[0-5][0-9]-[0-6][0-9]