Bug 1021165 - SELinux is preventing /usr/libexec/kde4/kdm_greet from 'read' accesses on the lnk_file .default.face.icon.
Summary: SELinux is preventing /usr/libexec/kde4/kdm_greet from 'read' accesses on the...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
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:61923d793969ef6daa0f4c2af0a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-20 02:52 UTC by Charlweed Hymerfan
Modified: 2014-08-22 12:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-22 12:35:02 UTC
Type: ---


Attachments (Terms of Use)

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?


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