Skip to content

Commit

Permalink
Switch AVC check requirements to use packages (#3471)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
happz authored Jan 21, 2025
1 parent e9c53af commit b35193f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tmt/checks/avc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b35193f

Please sign in to comment.