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 1224761

Summary: SELinux is preventing /usr/sbin/gdm from rmdir access on the directory auth-for-gdm-sVurjk
Product: Red Hat Enterprise Linux 7 Reporter: Vadim Rutkovsky <vrutkovs>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: lmiksik, lvrabec, mgrepl, mmalik, plautrba, pvrabec, ssekidde, vrutkovs
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 10:34:18 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 Vadim Rutkovsky 2015-05-25 14:42:08 UTC
Description of problem:
SELinux is preventing /usr/sbin/gdm from rmdir access on the directory auth-for-gdm-sVurjk

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-25.el7.noarch

How reproducible:


Steps to Reproduce:
1. Restart gdm service

Actual results:

SELinux is preventing /usr/sbin/gdm from rmdir access on the directory auth-for-gdm-sVurjk.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that gdm should be allowed rmdir access on the auth-for-gdm-sVurjk directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep gdm /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp


Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:var_run_t:s0
Target Objects                auth-for-gdm-sVurjk [ dir ]
Source                        gdm
Source Path                   /usr/sbin/gdm
Port                          <Unknown>
Host                          localhost.localdomain
Source RPM Packages           gdm-3.14.2-1.el7.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-25.el7.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     vrutkovs-rhel72
Platform                      Linux vrutkovs-rhel72 3.10.0-253.el7.x86_64 #1 SMP
                              Fri May 15 07:56:02 EDT 2015 x86_64 x86_64
Alert Count                   6
First Seen                    2015-05-25 09:48:58 EDT
Last Seen                     2015-05-25 10:40:11 EDT
Local ID                      a2d242b5-ff80-4036-bb0a-a86cbce8c52d

Raw Audit Messages
type=AVC msg=audit(1432564811.326:562): avc:  denied  { rmdir } for  pid=32210 comm="gdm" name="auth-for-gdm-sVurjk" dev="tmpfs" ino=24235 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_run_t:s0 tclass=dir


type=SYSCALL msg=audit(1432564811.326:562): arch=x86_64 syscall=rmdir success=no exit=ENOTEMPTY a0=7f286b8ffae0 a1=1 a2=0 a3=0 items=0 ppid=1 pid=32210 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=gdm exe=/usr/sbin/gdm subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: gdm,xdm_t,var_run_t,dir,rmdir

Comment 2 Milos Malik 2015-05-28 12:39:19 UTC
It seems that some files/directories on your machine are mislabeled. Please run following command:

# restorecon -Rv /var/run/gdm

Comment 3 Vadim Rutkovsky 2015-07-20 10:04:16 UTC
Doesn't happen on clean installation anymore, thanks!

Comment 4 Vadim Rutkovsky 2015-09-07 10:57:52 UTC
Verified on selinux-policy-3.13.1-46.el7.noarch

Comment 7 errata-xmlrpc 2015-11-19 10:34:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2300.html