From 8e73f44544e498d9dcf2f6fc0c065c4fad706411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Prchl=C3=ADk?= Date: Thu, 16 Jan 2025 13:39:50 +0100 Subject: [PATCH] Switch AVC check requirements to use packages Fedora Rawhide moved files under `/usr/bin`, therefore paths no longer work. Let's hope packages will work, everywhere, and that the required files are not shipped by some other packages on an obscure distro release. --- tmt/checks/avc.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tmt/checks/avc.py b/tmt/checks/avc.py index a090455e32..3fa31a18f3 100644 --- a/tmt/checks/avc.py +++ b/tmt/checks/avc.py @@ -301,9 +301,11 @@ def essential_requires( # Avoid circular imports import tmt.base + # Note: yes, this will most likely explode in any distro outside + # of Fedora, CentOS and RHEL. return [ - tmt.base.DependencySimple('/usr/sbin/sestatus'), - tmt.base.DependencySimple('/usr/sbin/ausearch') + tmt.base.DependencySimple('audit'), + tmt.base.DependencySimple('policycoreutils') ] @classmethod