feat(profile): add more test for lspci.

This commit is contained in:
Alexandre Pujol 2025-07-27 21:28:54 +02:00
parent 2a249cfe34
commit 1b939eaa6f
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 8 additions and 0 deletions

View file

@ -13,8 +13,12 @@ profile lspci @{exec_path} flags=(attach_disconnected) {
include <abstractions/consoles>
include <abstractions/nameservice-strict>
capability dac_read_search,
capability sys_admin,
network inet dgram,
network inet6 dgram,
@{exec_path} mr,
/usr/share/hwdata/pci.ids r,

View file

@ -22,6 +22,10 @@ load ../common
lspci -s 00:00.0
}
@test "lspci: Query the PCI ID database for unknown ID's via DNS" {
sudo lspci -q
}
@test "lspci: Dump info in a readable form" {
lspci -vm
}