public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Milos Malik <mmalik@redhat.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] main: test additional bugs related to the qatlib component
Date: Thu, 15 Oct 2026 13:28:01 GMT [thread overview]
Message-ID: <179207088145.1.8517578531487963250.tests-selinux-7644032224f8@fedoraproject.org> (raw)
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"
reply other threads:[~2026-10-15 13:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179207088145.1.8517578531487963250.tests-selinux-7644032224f8@fedoraproject.org \
--to=mmalik@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox