From 5886bbdd118bf723211b85c4d56fabeba952c415 Mon Sep 17 00:00:00 2001 From: Vit Mojzis Date: Mon, 3 Aug 2020 18:30:54 +0200 Subject: [PATCH] tests/Regression/Report-bugs: Add new test RPM --- .../Report-bugs-on-corresponding-components/Makefile | 4 ++-- .../avc_fapolicyd-selinux | 2 ++ .../Report-bugs-on-corresponding-components/runtest.sh | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 tests/Regression/Report-bugs-on-corresponding-components/avc_fapolicyd-selinux diff --git a/tests/Regression/Report-bugs-on-corresponding-components/Makefile b/tests/Regression/Report-bugs-on-corresponding-components/Makefile index 855e1fc..45a8915 100644 --- a/tests/Regression/Report-bugs-on-corresponding-components/Makefile +++ b/tests/Regression/Report-bugs-on-corresponding-components/Makefile @@ -32,7 +32,7 @@ export TESTVERSION=1.0 BUILT_FILES= -FILES=$(METADATA) runtest.sh Makefile avc_flatpak-selinux avc_tpm2-abrmd-selinux avc_container-selinux avc_usbguard-selinux avc_mysql-selinux +FILES=$(METADATA) runtest.sh Makefile avc_flatpak-selinux avc_tpm2-abrmd-selinux avc_container-selinux avc_usbguard-selinux avc_mysql-selinux avc_fapolicyd-selinux .PHONY: all install download clean @@ -56,7 +56,7 @@ $(METADATA): Makefile @echo "Type: Regression" >> $(METADATA) @echo "TestTime: 5m" >> $(METADATA) @echo "RunFor: setroubleshoot" >> $(METADATA) - @echo "Requires: flatpak-selinux tpm2-abrmd-selinux container-selinux usbguard-selinux mysql-selinux" >> $(METADATA) + @echo "Requires: setroubleshoot-server flatpak-selinux tpm2-abrmd-selinux container-selinux usbguard-selinux mysql-selinux fapolicyd-selinux" >> $(METADATA) @echo "Requires: $(TEST_PACKAGES)" >> $(METADATA) @echo "Priority: Normal" >> $(METADATA) @echo "License: GPLv2+" >> $(METADATA) diff --git a/tests/Regression/Report-bugs-on-corresponding-components/avc_fapolicyd-selinux b/tests/Regression/Report-bugs-on-corresponding-components/avc_fapolicyd-selinux new file mode 100644 index 0000000..3ee2a4c --- /dev/null +++ b/tests/Regression/Report-bugs-on-corresponding-components/avc_fapolicyd-selinux @@ -0,0 +1,2 @@ +type=AVC msg=audit(1596470053.831:306): avc: denied { unlink } for pid=6304 comm="fapolicyd" name="fapolicyd.pid" dev="tmpfs" ino=37446 scontext=system_u:system_r:fapolicyd_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=file permissive=0 + diff --git a/tests/Regression/Report-bugs-on-corresponding-components/runtest.sh b/tests/Regression/Report-bugs-on-corresponding-components/runtest.sh index 51468aa..e55a506 100755 --- a/tests/Regression/Report-bugs-on-corresponding-components/runtest.sh +++ b/tests/Regression/Report-bugs-on-corresponding-components/runtest.sh @@ -32,7 +32,7 @@ PACKAGE="setroubleshoot" if [ -z "${TEST_PACKAGES+set}" ]; -then PACKAGES=(flatpak-selinux tpm2-abrmd-selinux container-selinux usbguard-selinux mysql-selinux) +then PACKAGES=(flatpak-selinux tpm2-abrmd-selinux container-selinux usbguard-selinux mysql-selinux fapolicyd-selinux) else PACKAGES=(${TEST_PACKAGES[@]}) fi