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 - SELinux is preventing /usr/sbin/gdm from rmdir access on the directory auth-for-gdm-sVurjk
Summary: SELinux is preventing /usr/sbin/gdm from rmdir access on the directory auth-f...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.2
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-25 14:42 UTC by Vadim Rutkovsky
Modified: 2015-11-19 10:34 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 10:34:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2300 0 normal SHIPPED_LIVE selinux-policy bug fix update 2015-11-19 09:55:26 UTC

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


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