Skip to content

Commit

Permalink
Merge pull request #60 from jpopelka/selinux
Browse files Browse the repository at this point in the history
Treat SELinux AVCs as warnings
  • Loading branch information
jpopelka authored Jun 4, 2024
2 parents f419409 + 26a5e22 commit 2ed598a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion mini-tps.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Name: mini-tps
Version: 0.1
Release: 176%{?dist}
Release: 177%{?dist}
Summary: Mini TPS - Test Package Sanity

License: GPLv2
Expand Down Expand Up @@ -73,6 +73,9 @@ install -pD -m 0755 profiles/fedora/prepare-system %{buildroot}%{_libexecdir}/mi


%changelog
* Tue Jun 04 2024 Jiri Popelka <[email protected]> - 0.1-177
- Treat SELinux AVCs as warnings

* Tue May 28 2024 Jiri Popelka <[email protected]> - 0.1-176
- hack for missing config-manager

Expand Down
2 changes: 1 addition & 1 deletion mtps-run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ for nevra in $nevras_in_repo; do
if [ "$selinux_status" -ne "0" ]; then
ret=1
# Selinux failed
new_logfname="$(dirname "$logfname")/FAIL-selinux-$(basename "$logfname")"
new_logfname="$(dirname "$logfname")/WARN-selinux-$(basename "$logfname")"
echo "Selinux policy:" | tee -a "$logfname"
ausearch -m avc,user_avc,selinux_err,user_selinux_err -i -ts "$START_DATE" "$START_TIME" | tee -a "$new_logfname"
fi
Expand Down
4 changes: 2 additions & 2 deletions viewer/generate-result-json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ for log in mtps_log_dir.iterdir():
continue

# Selinux test has the "selinux" infix, for example:
# FAIL-selinux-045051-install-systemd-container-0:252-2.el9.x86_64.log
# WARN-selinux-045051-install-systemd-container-0:252-2.el9.x86_64.log
if test_run_id == "selinux":
result, _, _, test_name, test_object = log.name[: -len(".log")].split("-", 4)
test_object += " (selinux AVCs)"
test_object += " (SELinux AVCs)"

# The mtps log file with mtps-get-task object contains information about
# the download of Brew build, for example:
Expand Down

0 comments on commit 2ed598a

Please sign in to comment.