Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions test_suite/generic/helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import json
from packaging import version
from lib import test_lib

INSTANCES_JSON_PATH = os.environ['CIV_INSTANCES_JSON']
Expand All @@ -21,9 +22,9 @@ def check_avc_denials(host):

no_avc_denials_found = 'no matches' in result.stdout

# ignore avc denial for irqbalance
# remove when RHEL-78630 is fixed
if 'irqbalance' in result.stdout:
# ignore avc denial for irqbalance in 9.6 and 10.0
# revise when RHEL-78630 is fixed
if 'irqbalance' in result.stdout and version.parse(host.system_info.release) in [9.6, 10.0]:
no_avc_denials_found = True

assert no_avc_denials_found, 'There should not be any avc denials (selinux)'