Skip to content

Commit 73aaa1f

Browse files
committed
ignore irqbalance avc denial for 9.6 and 10.0
1 parent 5c85177 commit 73aaa1f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test_suite/generic/helpers.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import json
3+
from packaging import version
34
from lib import test_lib
45

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

2223
no_avc_denials_found = 'no matches' in result.stdout
2324

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

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

0 commit comments

Comments
 (0)