Bug 768584 - SELinux is preventing /usr/libexec/gdm-session-worker from 'add_name' accesses on the directory .xsession-errors.XXPOI75V.
Summary: SELinux is preventing /usr/libexec/gdm-session-worker from 'add_name' accesse...
Keywords:
Status: CLOSED DUPLICATE of bug 666620
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:0ccfd704144...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-17 08:14 UTC by Old Uncle
Modified: 2011-12-18 20:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-18 20:35:23 UTC
Type: ---


Attachments (Terms of Use)

Description Old Uncle 2011-12-17 08:14:11 UTC
SELinux is preventing /usr/libexec/gdm-session-worker from 'add_name' accesses on the directory .xsession-errors.XXPOI75V.

*****  Plugin catchall_boolean (89.3 confidence) suggests  *******************

If you want to enable polyinstantiated directory support.
Then you must tell SELinux about this by enabling the 'allow_polyinstantiation' boolean.
Do
setsebool -P allow_polyinstantiation 1

*****  Plugin catchall (11.6 confidence) suggests  ***************************

If you believe that gdm-session-worker should be allowed add_name access on the .xsession-errors.XXPOI75V 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-session-wor /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                system_u:object_r:admin_home_t:s0
Target Objects                .xsession-errors.XXPOI75V [ dir ]
Source                        gdm-session-wor
Source Path                   /usr/libexec/gdm-session-worker
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gdm-3.0.4-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-48.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.41.4-1.fc15.i686 #1 SMP Tue Nov 29
                              11:55:17 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Sat 17 Dec 2011 11:41:14 AM GET
Last Seen                     Sat 17 Dec 2011 11:41:14 AM GET
Local ID                      f9d52ba8-edd4-491d-97c6-687e84b183a1

Raw Audit Messages
type=AVC msg=audit(1324107674.906:223): avc:  denied  { add_name } for  pid=10558 comm="gdm-session-wor" name=".xsession-errors.XXPOI75V" scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:admin_home_t:s0 tclass=dir


type=SYSCALL msg=audit(1324107674.906:223): arch=i386 syscall=open success=no exit=EACCES a0=8c98e90 a1=80c2 a2=180 a3=1f items=0 ppid=10542 pid=10558 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=11 comm=gdm-session-wor exe=/usr/libexec/gdm-session-worker subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: gdm-session-wor,xdm_t,admin_home_t,dir,add_name

audit2allow

#============= xdm_t ==============
#!!!! This avc can be allowed using the boolean 'allow_polyinstantiation'

allow xdm_t admin_home_t:dir add_name;

audit2allow -R

#============= xdm_t ==============
#!!!! This avc can be allowed using the boolean 'allow_polyinstantiation'

allow xdm_t admin_home_t:dir add_name;

Comment 1 Miroslav Grepl 2011-12-18 20:35:23 UTC

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


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