Bug 951316

Summary: SELinux is preventing /usr/sbin/lightdm from 'create' accesses on the file .dmrc.P449UW.
Product: [Fedora] Fedora Reporter: Neil <neilsbb>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:972cd815be4eb2c5436eef3b20167e551cca690377b37f3b597b5bac5aa30e46
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-12 10:28:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Neil 2013-04-12 04:18:26 UTC
Description of problem:
SELinux is preventing /usr/sbin/lightdm from 'create' accesses on the file .dmrc.P449UW.

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

If you believe that lightdm should be allowed create access on the .dmrc.P449UW file 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 lightdm /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:user_home_t:s0
Target Objects                .dmrc.P449UW [ file ]
Source                        lightdm
Source Path                   /usr/sbin/lightdm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           lightdm-1.5.3-1.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-28.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.0-0.rc6.git2.2.fc20.x86_64 #1
                              SMP Thu Apr 11 15:55:48 UTC 2013 x86_64 x86_64
Alert Count                   4
First Seen                    2013-04-11 20:28:49 PDT
Last Seen                     2013-04-11 21:09:40 PDT
Local ID                      341e60a2-bc4c-4267-9766-a561fe89660a

Raw Audit Messages
type=AVC msg=audit(1365739780.243:403): avc:  denied  { create } for  pid=454 comm="lightdm" name=".dmrc.P449UW" scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:user_home_t:s0 tclass=file


type=SYSCALL msg=audit(1365739780.243:403): arch=x86_64 syscall=open success=no exit=EACCES a0=198bce0 a1=c2 a2=1b6 a3=1 items=0 ppid=1 pid=454 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=0 fsuid=1000 egid=1000 sgid=0 fsgid=1000 ses=4294967295 tty=(none) comm=lightdm exe=/usr/sbin/lightdm subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: lightdm,xdm_t,user_home_t,file,create

audit2allow

#============= xdm_t ==============
allow xdm_t user_home_t:file create;

audit2allow -R
require {
	type xdm_t;
}

#============= xdm_t ==============
mta_mailserver_delivery(xdm_t)


Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc6.git2.2.fc20.x86_64
type:           libreport

Potential duplicate: bug 922958

Comment 1 Miroslav Grepl 2013-04-12 10:28:53 UTC

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