fix(profile): integration tests.

This commit is contained in:
Alexandre Pujol 2025-03-30 18:28:50 +02:00
parent 9ef8db9cbc
commit 1751a9997c
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
5 changed files with 12 additions and 1 deletions

View file

@ -34,6 +34,7 @@ profile grub-probe @{exec_path} {
@{PROC}/devices r,
/dev/**/ r,
/dev/mapper/control w,
include if exists <local/grub-probe>
}

View file

@ -39,6 +39,9 @@ profile snap-update-ns @{exec_path} {
/ r,
/tmp/ r,
/usr/ r,
/usr/local/ r,
/usr/local/share/ r,
owner /snap/{,**} rw,

View file

@ -21,12 +21,15 @@ profile landscape-sysinfo @{exec_path} {
network inet6 dgram,
network netlink raw,
ptrace (read),
ptrace read,
@{exec_path} mr,
@{bin}/who rix,
@{lib}/@{python_name}/landscape/{,**/}__pycache__/ w,
@{lib}/@{python_name}/landscape/{,**/}__pycache__/**.pyc.@{u64} w,
/var/log/landscape/{,**} rw,
@{run}/utmp rwk,

View file

@ -21,10 +21,13 @@ profile sysstat-sadc @{exec_path} {
/var/log/sysstat/{,**} rwk,
@{sys}/bus/i2c/devices/ r,
@{sys}/class/fc_host/ r,
@{sys}/class/hwmon/ r,
@{sys}/class/i2c-adapter/ r,
@{sys}/devices/@{pci}/i2c-@{int}/name r,
@{sys}/devices/@{pci}/net/*/duplex r,
@{sys}/devices/**/net/*/duplex r,
@{sys}/devices/**/net/*/speed r,
@{sys}/devices/virtual/net/*/duplex r,
@{sys}/devices/virtual/net/*/speed r,

View file

@ -69,6 +69,7 @@ profile tlp @{exec_path} flags=(attach_disconnected) {
@{run}/udev/data/+platform:* r,
@{sys}/bus/pci/devices/ r,
@{sys}/class/drm/ r,
@{sys}/class/net/ r,
@{sys}/class/power_supply/ r,
@{sys}/devices/@{pci}/ r,