public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] main: test additional bugs related to the qatlib component
@ 2026-10-15 13:28 Milos Malik
0 siblings, 0 replies; only message in thread
From: Milos Malik @ 2026-10-15 13:28 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : tests/selinux
Branch : main
Commit : 7644032224f8860410d129ad38bdf0a171b77f19
Author : Milos Malik <mmalik@redhat.com>
Date : 2026-10-15T13:27:41+00:00
Stats : +39/-0 in 2 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/7644032224f8860410d129ad38bdf0a171b77f19?branch=main
Log:
test additional bugs related to the qatlib component
Over time, several bug reports were filed because of SELinux denials
triggered by the qat service. The TC is able to reproduce them when
executed on a machine with the right HW.
The automated test performs basic actions on the qat service and looks
for any SELinux denials, because majority of the reported problems
were encountered this way.
The TC covers the following bugs:
* BZ#2080443
* RHEL-19051 and RHEL-19052
* RHEL-53864 and RHEL-66334
* RHEL-133797 and RHEL-133799
---
diff --git a/selinux-policy/qat-service-and-similar/main.fmf b/selinux-policy/qat-service-and-similar/main.fmf
index 6034179..6052b6e 100644
--- a/selinux-policy/qat-service-and-similar/main.fmf
+++ b/selinux-policy/qat-service-and-similar/main.fmf
@@ -35,6 +35,13 @@ tag:
- targeted
- NoRHIVOS
link:
+ - verifies: https://bugzilla.redhat.com/show_bug.cgi?id=2080443
+ - verifies: https://redhat.atlassian.net/browse/RHEL-19051
+ - verifies: https://redhat.atlassian.net/browse/RHEL-19052
+ - verifies: https://redhat.atlassian.net/browse/RHEL-53864
+ - verifies: https://redhat.atlassian.net/browse/RHEL-66334
+ - verifies: https://redhat.atlassian.net/browse/RHEL-133797
+ - verifies: https://redhat.atlassian.net/browse/RHEL-133799
- verifies: https://issues.redhat.com/browse/RHEL-211077
- verifies: https://issues.redhat.com/browse/RHEL-211089
- verifies: https://issues.redhat.com/browse/RHEL-251355
diff --git a/selinux-policy/qat-service-and-similar/runtest.sh b/selinux-policy/qat-service-and-similar/runtest.sh
index a268514..e977640 100755
--- a/selinux-policy/qat-service-and-similar/runtest.sh
+++ b/selinux-policy/qat-service-and-similar/runtest.sh
@@ -56,6 +56,38 @@ rlJournalStart
rlPhaseEnd
if rlSEDefined ${PROCESS_CONTEXT} ; then
+ rlPhaseStartTest "BZ#2080443"
+ rlRun "semodule -lfull | grep qatlib"
+ rlSESearchRule "allow qatlib_t systemd_unit_file_t : dir { search } [ ]"
+ rlSESearchRule "allow qatlib_t sssd_public_t : dir { search } [ ]"
+ rlSESearchRule "allow qatlib_t sssd_var_lib_t : dir { search } [ ]"
+ rlSESearchRule "allow qatlib_t sysfs_t : file { write } [ ]"
+ rlSESearchRule "allow qatlib_t kmod_exec_t : file { getattr open read map execute execute_no_trans } [ ]"
+ rlSESearchRule "allow qatlib_t modules_conf_t : dir { getattr open read } [ ]"
+ rlSESearchRule "allow qatlib_t proc_t : file { getattr open read } [ ]"
+ rlPhaseEnd
+
+ rlPhaseStartTest "RHEL-19051 + RHEL-19052"
+ rlSESearchRule "allow qatlib_t var_run_t : dir { write add_name } [ ]"
+ rlSESearchRule "type_transition qatlib_t var_run_t : sock_file qatlib_var_run_t"
+ rlSESearchRule "allow qatlib_t qatlib_var_run_t : sock_file { create } [ ]"
+ rlPhaseEnd
+
+ rlPhaseStartTest "RHEL-53864 + RHEL-66334"
+ rlRun "semanage fcontext -l | grep '/sys/kernel/debug.*:debugfs_t:'"
+ rlRun "semanage fcontext -l | grep '/dev/vfio/.*:vfio_device_t'"
+ rlSESearchRule "allow qatlib_t debugfs_t : dir { getattr open search } [ ]"
+ rlSESearchRule "allow qatlib_t vfio_device_t : chr_file { getattr read write ioctl } [ ]"
+ rlPhaseEnd
+
+ rlPhaseStartTest "RHEL-133797 + RHEL-133799"
+ for CUR_FILE in `find /lib/modules -type f -name modules.dep.bin` ; do
+ rlSEMatchPathCon $CUR_FILE "modules_dep_t"
+ done
+ rlSESearchRule "allow qatlib_t modules_dep_t : file { map } [ ]"
+ rlSESearchRule "allow qatlib_t modules_object_t : file { map } [ ]"
+ rlPhaseEnd
+
rlPhaseStartTest "RHEL-211077"
rlSEMatchPathCon ${FILE_PATH} ${FILE_CONTEXT}
rlSEMatchPathCon "/dev/hugepages" "hugetlbfs_t"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-15 13:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-15 13:28 [tests/selinux] main: test additional bugs related to the qatlib component Milos Malik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox