From 19c1bcc2c72d20a38986a69ac87e4b03bdd5ebc5 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Tue, 5 Sep 2023 23:23:06 +0100 Subject: [PATCH] fix(tunable): pci id are hex. --- apparmor.d/tunables/multiarch.d/apparmor.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apparmor.d/tunables/multiarch.d/apparmor.d b/apparmor.d/tunables/multiarch.d/apparmor.d index 998cda31..7fd43236 100644 --- a/apparmor.d/tunables/multiarch.d/apparmor.d +++ b/apparmor.d/tunables/multiarch.d/apparmor.d @@ -34,8 +34,8 @@ @{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_id}=@{h}@{h}@{h}@{h}:@{h}@{h}:@{h}@{h}.@{h} +@{pci_bus}=pci@{h}@{h}@{h}@{h}:@{h}@{h} @{pci}=@{pci_bus}/@{pci_id}{,/@{pci_id}}{,/@{pci_bus}/@{pci_id}{,/@{pci_id}}} # Date and time