Bug 1021165

Summary: SELinux is preventing /usr/libexec/kde4/kdm_greet from 'read' accesses on the lnk_file .default.face.icon.
Product: [Fedora] Fedora Reporter: Charlweed Hymerfan <dev>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:61923d793969ef6daa0f4c2af0af0510a3ae387a016d195da9d3e045356386eb
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-22 12:35:02 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 Charlweed Hymerfan 2013-10-20 02:52:43 UTC
Description of problem:
KDM needs this access to show the faces in the GUI.
SELinux is preventing /usr/libexec/kde4/kdm_greet from 'read' accesses on the lnk_file .default.face.icon.

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

If you want to support NFS home directories
Then you must tell SELinux about this by enabling the 'use_nfs_home_dirs' boolean.
You can read 'None' man page for more details.
Do
setsebool -P use_nfs_home_dirs 1

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

If you believe that kdm_greet should be allowed read access on the .default.face.icon lnk_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 kdm_greet /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:nfs_t:s0
Target Objects                .default.face.icon [ lnk_file ]
Source                        kdm_greet
Source Path                   /usr/libexec/kde4/kdm_greet
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           kdm-4.11.2-1.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.9.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.11.4-201.fc19.x86_64 #1 SMP Thu
                              Oct 10 14:11:18 UTC 2013 x86_64 x86_64
Alert Count                   2
First Seen                    2013-10-19 18:17:53 PDT
Last Seen                     2013-10-19 19:11:47 PDT
Local ID                      61233b15-5b91-4ff8-a001-9f0a33d5d190

Raw Audit Messages
type=AVC msg=audit(1382235107.943:446): avc:  denied  { read } for  pid=1233 comm="kdm_greet" name=".default.face.icon" dev="0:36" ino=2359576 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:nfs_t:s0 tclass=lnk_file


type=SYSCALL msg=audit(1382235107.943:446): arch=x86_64 syscall=open success=yes exit=EBADF a0=7f5b469fe228 a1=800 a2=7f5b469fe228 a3=0 items=0 ppid=1228 pid=1233 auid=4294967295 uid=0 gid=0 euid=99 suid=0 fsuid=99 egid=99 sgid=0 fsgid=99 ses=4294967295 tty=(none) comm=kdm_greet exe=/usr/libexec/kde4/kdm_greet subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: kdm_greet,xdm_t,nfs_t,lnk_file,read

Additional info:
reporter:       libreport-2.1.8
hashmarkername: setroubleshoot
kernel:         3.11.4-201.fc19.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-10-21 09:53:09 UTC
If you want to support NFS home directories
Then you must tell SELinux about this by enabling the 'use_nfs_home_dirs' boolean.
You can read 'None' man page for more details.
Do
setsebool -P use_nfs_home_dirs 1

Comment 2 Charlweed Hymerfan 2013-10-24 05:16:38 UTC
Yourclose is in-valid. On my system, this has nothing to do with the user's home directory. The user directories are local, Not nfs. Additionally, the faces directory is /usr/sare/kde4/kdm/faces. We do NOT store faces in user home directories.

Comment 3 Daniel Walsh 2013-10-24 17:01:24 UTC
Is /usr/share/kde4/kdm/faces an nfs share?