Bug 797453

Summary: SELinux is preventing /usr/libexec/gdm-session-worker from 'setattr' accesses on the None .xsession-errors.
Product: [Fedora] Fedora Reporter: Stephen <spoffley>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:f7cde34cbb8c0e061bf50ac00e44ca291080cae5d16fd897c63d842fa4215de3
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-29 10:26:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Stephen 2012-02-26 00:42:53 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.7-1.fc16.x86_64
reason:         SELinux is preventing /usr/libexec/gdm-session-worker from 'setattr' accesses on the None .xsession-errors.
time:           Sat 25 Feb 2012 07:42:16 PM EST

description:
:SELinux is preventing /usr/libexec/gdm-session-worker from 'setattr' accesses on the None .xsession-errors.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that gdm-session-worker should be allowed setattr access on the .xsession-errors <Unknown> 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:samba_share_t:s0
:Target Objects                .xsession-errors [ None ]
:Source                        gdm-session-wor
:Source Path                   /usr/libexec/gdm-session-worker
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           gdm-3.2.1.1-8.fc16.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.7-1.fc16.x86_64 #1 SMP Tue
:                              Feb 21 01:40:47 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    Sat 25 Feb 2012 07:39:48 PM EST
:Last Seen                     Sat 25 Feb 2012 07:39:48 PM EST
:Local ID                      13a37dc0-a8e4-43f1-a986-8e9b013c30c0
:
:Raw Audit Messages
:type=AVC msg=audit(1330216788.557:97): avc:  denied  { setattr } for  pid=2205 comm="gdm-session-wor" name=".xsession-errors" dev=sdc1 ino=10092593 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:samba_share_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1330216788.557:97): arch=c000003e syscall=91 success=yes exit=0 a0=c a1=180 a2=180 a3=4 items=0 ppid=2060 pid=2205 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 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,samba_share_t,None,setattr
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-02-27 11:28:18 UTC
Did you change labeling to use the samba_share_t label? 

It looks so.

Comment 2 Daniel Walsh 2012-02-27 16:36:27 UTC
If you want to share a home dir you need to turn on the boolean samba_enable_home_dirs, not label the homedir as samba_share_t.

setsebool -P samba_enable_home_dirs 1

If you added a file context label for samba_share_t, please remove it, and run restorecon on your homedirs.