feat(aa-log): full detection of pci path.

This commit is contained in:
Alexandre Pujol 2024-07-04 22:25:09 +01:00
parent 62e18d04d7
commit ee3322c463
Failed to generate hash of commit

View file

@ -49,7 +49,7 @@ var (
`(?m)^.*/dev/(u|)random.*$`, ``, `(?m)^.*/dev/(u|)random.*$`, ``,
}) })
regResolveLogs = util.ToRegexRepl([]string{ regResolveLogs = util.ToRegexRepl([]string{
// Resolve classic user variables // Resolve user variables
`/home/[^/]+/.cache`, `@{user_cache_dirs}`, `/home/[^/]+/.cache`, `@{user_cache_dirs}`,
`/home/[^/]+/.config`, `@{user_config_dirs}`, `/home/[^/]+/.config`, `@{user_config_dirs}`,
`/home/[^/]+/.local/share`, `@{user_share_dirs}`, `/home/[^/]+/.local/share`, `@{user_share_dirs}`,
@ -60,7 +60,7 @@ var (
`/home/[^/]+/.gnupg`, `@{HOME}/@{XDG_GPG_DIR}`, `/home/[^/]+/.gnupg`, `@{HOME}/@{XDG_GPG_DIR}`,
`/home/[^/]+/`, `@{HOME}/`, `/home/[^/]+/`, `@{HOME}/`,
// Resolve classic system variables // Resolve system variables
`/usr/(lib|lib32|lib64|libexec)`, `@{lib}`, `/usr/(lib|lib32|lib64|libexec)`, `@{lib}`,
`/usr/(bin|sbin)`, `@{bin}`, `/usr/(bin|sbin)`, `@{bin}`,
`x86_64-pc-linux-gnu[^/]?`, `@{multiarch}`, `x86_64-pc-linux-gnu[^/]?`, `@{multiarch}`,
@ -75,7 +75,8 @@ var (
`/sys/`, `@{sys}/`, `/sys/`, `@{sys}/`,
`@{PROC}@{sys}/`, `@{PROC}/sys/`, `@{PROC}@{sys}/`, `@{PROC}/sys/`,
`pci` + strings.Repeat(_hex, 4) + `:` + strings.Repeat(_hex, 2), `@{pci_bus}`, `pci` + strings.Repeat(_hex, 4) + `:` + strings.Repeat(_hex, 2), `@{pci_bus}`,
`1000`, `@{pid}`, `@{pci_bus}/[0-9a-f:*./]*`, `@{pci}/`,
`1000`, `@{uid}`,
// Some system glob // Some system glob
`:1.[0-9]*`, `:*`, // dbus peer name `:1.[0-9]*`, `:*`, // dbus peer name