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 - avc error of systemd-user-runtime-dir
Summary: avc error of systemd-user-runtime-dir
Keywords:
Status: CLOSED DUPLICATE of bug 2000039
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: selinux-policy
Version: 9.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Zdenek Pytela
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-22 03:26 UTC by Hekai Wang
Modified: 2022-07-07 09:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-22 09:26:30 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-114320 0 None None None 2022-03-03 10:32:46 UTC

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 ***


Note You need to log in before you can comment on or make changes to this bug.