Bug 1996315

Summary: selinux - some tests give USER_AVC denied errors
Product: Red Hat Enterprise Linux 9 Reporter: Rich Megginson <rmeggins>
Component: rhel-system-rolesAssignee: Rich Megginson <rmeggins>
Status: CLOSED CURRENTRELEASE QA Contact: Jakub Haruda <jharuda>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: djez, jharuda, nhosoi, spetrosi
Target Milestone: betaKeywords: Triaged
Target Release: 9.0 Beta   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: role:selinux
Fixed In Version: rhel-system-roles-1.8.3-2.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1996317 (view as bug list) Environment:
Last Closed: 2021-12-07 21:57:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1996317    

Description Rich Megginson 2021-08-21 19:16:49 UTC
Description of problem:
http://artifacts.osci.redhat.com/baseos-ci/brew-build/39/07/73/39077384/https___baseos-jenkins.rhev-ci-vms.eng.rdu2.redhat.com-ci-artemis/15399/tmpWVSbhF.01/recipes/1/tasks/2/results/1629385111/logs/avc.log

selinux-policy-3.14.3-75.el8.noarch
----
time->Thu Aug 19 17:02:32 2021
type=USER_AVC msg=audit(1629392552.937:2011): pid=682 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc:  denied  { send_msg } for msgtype=signal interface=org.freedesktop.DBus.Properties member=PropertiesChanged dest=org.freedesktop.DBus spid=1 tpid=749 scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:systemd_logind_t:s0 tclass=dbus permissive=0  exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?'
----
time->Thu Aug 19 17:02:32 2021
type=USER_AVC msg=audit(1629392552.937:2012): pid=682 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc:  denied  { send_msg } for msgtype=signal interface=org.freedesktop.DBus.Properties member=PropertiesChanged dest=org.freedesktop.DBus spid=1 tpid=749 scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:systemd_logind_t:s0 tclass=dbus permissive=0  exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?'
----
time->Thu Aug 19 17:02:32 2021
type=USER_AVC msg=audit(1629392552.940:2013): pid=682 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc:  denied  { send_msg } for msgtype=signal interface=org.freedesktop.DBus.Properties member=PropertiesChanged dest=org.freedesktop.DBus spid=1 tpid=749 scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:systemd_logind_t:s0 tclass=dbus permissive=0  exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?'
----
time->Thu Aug 19 17:02:32 2021
type=USER_AVC msg=audit(1629392552.940:2014): pid=682 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc:  denied  { send_msg } for msgtype=signal interface=org.freedesktop.DBus.Properties member=PropertiesChanged dest=org.freedesktop.DBus spid=1 tpid=749 scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:systemd_logind_t:s0 tclass=dbus permissive=0  exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?'

These occur during the selinux tests_selinux_disabled.yml

In earlier versions of rhel-system-roles we used to tag these tests with "tests::avc" - we should do so again.

I have a scratch build with the proposed fix: https://dashboard.osci.redhat.com/#/artifact/brew-build/aid/39146312

This does not have the avc errors http://artifacts.osci.redhat.com/baseos-ci/brew-build/39/14/63/39146312/https___baseos-jenkins.rhev-ci-vms.eng.rdu2.redhat.com-ci-artemis/15560/tmpso7wO0.01/recipes/1/tasks/2/results/1629548311/logs/avc.log

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info: