Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2056754

Summary: avc error of systemd-user-runtime-dir
Product: Red Hat Enterprise Linux 9 Reporter: Hekai Wang <hewang>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: medium    
Version: 9.0CC: lvrabec, mmalik, ssekidde
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-22 09:26:30 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:

Description Hekai Wang 2022-02-22 03:26:56 UTC
Description of problem:
Hitting avc error when running test tasks on rhel9

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


How reproducible:
Always

SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Memory protection checking:     actual (secure)
Max kernel policy version:      33
selinux-policy-34.1.23-1.el9.noarch
----
time->Thu Feb 10 07:33:19 2022
type=PROCTITLE msg=audit(1644496399.252:939): proctitle=2F7573722F6C69622F73797374656D642F73797374656D642D757365722D72756E74696D652D6469720073746F700030
type=SYSCALL msg=audit(1644496399.252:939): arch=c000003e syscall=263 success=no exit=-13 a0=3 a1=560627019933 a2=0 a3=9b items=0 ppid=1 pid=45958 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-user-ru" exe="/usr/lib/systemd/systemd-user-runtime-dir" subj=system_u:system_r:systemd_logind_t:s0 key=(null)
type=AVC msg=audit(1644496399.252:939): avc:  denied  { unlink } for  pid=45958 comm="systemd-user-ru" name="bus" dev="tmpfs" ino=16 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=unconfined_u:object_r:session_dbusd_tmp_t:s0 tclass=sock_file permissive=0

Here is the job link 
https://beaker.engineering.redhat.com/jobs/6287683

Actual results:
avc error

Expected results:
no avc error

Additional info:

Comment 1 Hekai Wang 2022-02-22 03:28:15 UTC
kernel version
RHEL-9.0.0-20220207.2 ==> kernel-5.14.0-55.el9

Comment 2 Zdenek Pytela 2022-02-22 07:44:20 UTC
IMO this is a dup of bz#2000039, resolved with selinux-policy-34.1.24-1.el9

Please retest with the latest version selinux-policy-34.1.26-1.el9

Comment 3 Milos Malik 2022-02-22 09:26:30 UTC

*** This bug has been marked as a duplicate of bug 2000039 ***