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 639247 - SELinux is preventing /usr/libexec/gdm-session-worker "create" access
Summary: SELinux is preventing /usr/libexec/gdm-session-worker "create" access
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libselinux
Version: 7.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Daniel Walsh
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On: 658571
Blocks: 750385 756082
TreeView+ depends on / blocked
 
Reported: 2010-10-01 08:53 UTC by Milos Malik
Modified: 2023-09-14 01:22 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 09:36:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Milos Malik 2010-10-01 08:53:27 UTC
Detailed Description:

SELinux denied access requested by gdm-session-wor. It is not expected that this
access is required by gdm-session-wor and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                guest_u:guest_r:oddjob_mkhomedir_t:s0
Target Objects                None [ key ]
Source                        gdm-session-wor
Source Path                   /usr/libexec/gdm-session-worker
Port                          <Unknown>
Host                          localhost.localdomain
Source RPM Packages           gdm-2.30.4-21.el6
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-55.el6
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     localhost.localdomain
Platform                      Linux localhost.localdomain 2.6.32-71.el6.i686 #1
                              SMP Wed Sep 1 01:26:34 EDT 2010 i686 i686
Alert Count                   3
First Seen                    Fri Oct  1 10:43:52 2010
Last Seen                     Fri Oct  1 10:47:03 2010
Local ID                      f4e7b656-d9c7-43b1-83b3-6ce9c33bed01
Line Numbers                  

Raw Audit Messages            

node=localhost.localdomain type=AVC msg=audit(1285922823.244:334): avc:  denied  { create } for  pid=5622 comm="gdm-session-wor" scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=guest_u:guest_r:oddjob_mkhomedir_t:s0 tclass=key

node=localhost.localdomain type=SYSCALL msg=audit(1285922823.244:334): arch=40000003 syscall=4 success=no exit=-13 a0=8 a1=a0142d8 a2=26 a3=a0142d8 items=0 ppid=4512 pid=5622 auid=505 uid=0 gid=505 euid=0 suid=0 fsuid=0 egid=505 sgid=505 fsgid=505 tty=(none) ses=24 comm="gdm-session-wor" exe="/usr/libexec/gdm-session-worker" subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Comment 1 Milos Malik 2010-10-01 08:55:42 UTC
Appeared immediately after comment#0

Summary:

SELinux is preventing /usr/libexec/gdm-session-worker "entrypoint" access on
/usr/bin/gnome-keyring-daemon.

Detailed Description:

SELinux denied access requested by gdm-session-wor. It is not expected that this
access is required by gdm-session-wor and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                guest_u:guest_r:oddjob_mkhomedir_t:s0
Target Context                system_u:object_r:bin_t:s0
Target Objects                /usr/bin/gnome-keyring-daemon [ file ]
Source                        gdm-session-wor
Source Path                   /usr/libexec/gdm-session-worker
Port                          <Unknown>
Host                          localhost.localdomain
Source RPM Packages           gdm-2.30.4-21.el6
Target RPM Packages           gnome-keyring-2.28.2-6.el6
Policy RPM                    selinux-policy-3.7.19-55.el6
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     localhost.localdomain
Platform                      Linux localhost.localdomain 2.6.32-71.el6.i686 #1
                              SMP Wed Sep 1 01:26:34 EDT 2010 i686 i686
Alert Count                   3
First Seen                    Fri Oct  1 10:43:52 2010
Last Seen                     Fri Oct  1 10:47:03 2010
Local ID                      46d0d879-29b7-43a3-84e9-85c5107610a6
Line Numbers                  

Raw Audit Messages            

node=localhost.localdomain type=AVC msg=audit(1285922823.270:335): avc:  denied  { entrypoint } for  pid=5660 comm="gdm-session-wor" path="/usr/bin/gnome-keyring-daemon" dev=dm-0 ino=64714 scontext=guest_u:guest_r:oddjob_mkhomedir_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=file

node=localhost.localdomain type=SYSCALL msg=audit(1285922823.270:335): arch=40000003 syscall=11 success=no exit=-13 a0=7ba449 a1=bf9bd1a0 a2=a014618 a3=7ba48c items=0 ppid=5622 pid=5660 auid=505 uid=505 gid=505 euid=505 suid=505 fsuid=505 egid=505 sgid=505 fsgid=505 tty=(none) ses=24 comm="gdm-session-wor" exe="/usr/libexec/gdm-session-worker" subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Comment 3 Milos Malik 2010-10-01 09:14:31 UTC
I'm sorry I forgot that guest_u user is not allowed to work in an X session.

Comment 4 Daniel Walsh 2010-10-01 12:52:09 UTC
So this is what happened when you tried to login via X as a guest user.  You were not allowed to login correct?

Comment 5 Milos Malik 2010-10-01 13:03:08 UTC
Yes, I tried to log into X via GDM. After I entered login and password GDM displayed a message something like "Unable to open session" and I was not allowed to log in.

Comment 6 Daniel Walsh 2010-10-01 14:09:42 UTC
Sadly the tool looked for a transition from xdm_t to guest_t and then attempted to fail over to other domains.  Maybe it is time to change the library to not bring back alternative matches.

Comment 7 Daniel Walsh 2010-11-29 18:06:57 UTC
We would have to make this change in Rawhide before we tried it in RHEL6.  Delayed until at least 6.2

Comment 18 Daniel Walsh 2013-03-20 01:50:10 UTC
Fixed in libselinux-2.1.13-10.el7

Comment 23 Ludek Smid 2014-06-13 09:36:03 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.

Comment 25 Red Hat Bugzilla 2023-09-14 01:22:15 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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