Bug 955851 - SELinux is preventing /usr/sbin/lightdm from 'write' accesses on the file /home/dalax/.dmrc.ASTZVW.
Summary: SELinux is preventing /usr/sbin/lightdm from 'write' accesses on the file /ho...
Keywords:
Status: CLOSED DUPLICATE of bug 922958
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6d6ca793c7ecaafd95ecf8ff027...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-24 01:29 UTC by da|ax
Modified: 2013-04-24 13:06 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-24 13:06:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description da|ax 2013-04-24 01:29:14 UTC
Description of problem:
SELinux is preventing /usr/sbin/lightdm from 'write' accesses on the file /home/dalax/.dmrc.ASTZVW.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/home/dalax/.dmrc.ASTZVW default label should be xdm_home_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /home/dalax/.dmrc.ASTZVW

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that lightdm should be allowed write access on the .dmrc.ASTZVW 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                /home/dalax/.dmrc.ASTZVW [ file ]
Source                        lightdm
Source Path                   /usr/sbin/lightdm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           lightdm-1.6.0-2.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-34.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.0-0.rc7.git3.1.fc19.x86_64 #1
                              SMP Thu Apr 18 20:29:47 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-04-23 21:17:15 EDT
Last Seen                     2013-04-23 21:17:15 EDT
Local ID                      81799516-07a9-4db3-9217-24a8775c10f8

Raw Audit Messages
type=AVC msg=audit(1366766235.80:398): avc:  denied  { write } for  pid=495 comm="lightdm" path="/home/dalax/.dmrc.ASTZVW" dev="dm-2" ino=65088 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(1366766235.80:398): arch=x86_64 syscall=open success=no exit=EACCES a0=a42fa0 a1=c2 a2=1b6 a3=1 items=0 ppid=1 pid=495 auid=4294967295 uid=1000 gid=0 euid=1000 suid=0 fsuid=1000 egid=0 sgid=0 fsgid=0 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,write

audit2allow

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

audit2allow -R
require {
	type xdm_t;
}

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


Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc7.git3.1.fc19.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-04-24 13:06:23 UTC

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


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