Bug 924003

Summary: SELinux is preventing /usr/sbin/lightdm from 'create' accesses on the file .dmrc.YQBCUW.
Product: [Fedora] Fedora Reporter: Nicolas Chauvet (kwizart) <kwizart>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:972cd815be4eb2c5436eef3b20167e551cca690377b37f3b597b5bac5aa30e46
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-21 08:37:11 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 Nicolas Chauvet (kwizart) 2013-03-20 22:14:56 UTC
Description of problem:
SELinux is preventing /usr/sbin/lightdm from 'create' accesses on the file .dmrc.YQBCUW.

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

If vous pensez que lightdm devrait être autorisé à accéder create sur .dmrc.YQBCUW file par défaut.
Then vous devriez rapporter ceci en tant qu'anomalie.
Vous pouvez générer un module de stratégie local pour autoriser cet accès.
Do
autoriser cet accès pour le moment en exécutant :
# 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.YQBCUW [ file ]
Source                        lightdm
Source Path                   /usr/sbin/lightdm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           lightdm-1.5.1-1.fc19.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-22.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.0-0.rc0.git3.1.fc19.i686.PAE
                              #1 SMP Thu Feb 21 23:51:23 UTC 2013 i686 i686
Alert Count                   9
First Seen                    2013-03-10 10:45:54 CET
Last Seen                     2013-03-20 23:07:10 CET
Local ID                      f73f29b2-5db0-4760-97e8-a8561233947c

Raw Audit Messages
type=AVC msg=audit(1363817230.403:349): avc:  denied  { create } for  pid=564 comm="lightdm" name=".dmrc.YQBCUW" 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(1363817230.403:349): arch=i386 syscall=open success=no exit=EACCES a0=8849d58 a1=80c2 a2=1b6 a3=0 items=0 ppid=1 pid=564 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 ==============
userdom_manage_user_home_content_files(xdm_t)


Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc0.git3.1.fc19.i686.PAE
type:           libreport

Potential duplicate: bug 922958

Comment 1 Miroslav Grepl 2013-03-21 08:37:11 UTC

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