Bug 752519 - SELinux is preventing /bin/dbus-daemon from 'read' accesses on the file /home/sgehwolf/.local/share/icc/edid-f3cb78d57dd3a32819fae1a62448db0b.icc.
Summary: SELinux is preventing /bin/dbus-daemon from 'read' accesses on the file /home...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f30d1447092f80f4d97d67e017b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-09 18:32 UTC by Severin Gehwolf
Modified: 2011-11-09 19:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-09 19:00:13 UTC
Type: ---


Attachments (Terms of Use)

Description Severin Gehwolf 2011-11-09 18:32:18 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-7.fc16.x86_64
reason:         SELinux is preventing /bin/dbus-daemon from 'read' accesses on the file /home/sgehwolf/.local/share/icc/edid-f3cb78d57dd3a32819fae1a62448db0b.icc.
time:           Wed Nov  9 13:31:10 2011

description:
:SELinux is preventing /bin/dbus-daemon from 'read' accesses on the file /home/sgehwolf/.local/share/icc/edid-f3cb78d57dd3a32819fae1a62448db0b.icc.
:
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:
:If you want to fix the label. 
:/home/sgehwolf/.local/share/icc/edid-f3cb78d57dd3a32819fae1a62448db0b.icc default label should be icc_data_home_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /home/sgehwolf/.local/share/icc/edid-f3cb78d57dd3a32819fae1a62448db0b.icc
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If you believe that dbus-daemon should be allowed read access on the edid-f3cb78d57dd3a32819fae1a62448db0b.icc 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 dbus-daemon /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:system_dbusd_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:nfs_t:s0
:Target Objects                /home/sgehwolf/.local/share/icc/edid-
:                              f3cb78d57dd3a32819fae1a62448db0b.icc [ file ]
:Source                        dbus-daemon
:Source Path                   /bin/dbus-daemon
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           dbus-1.4.10-3.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-51.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed)
:                              3.1.0-7.fc16.x86_64 #1 SMP Tue Nov 1 21:10:48 UTC
:                              2011 x86_64 x86_64
:Alert Count                   10
:First Seen                    Wed 09 Nov 2011 11:59:58 AM EST
:Last Seen                     Wed 09 Nov 2011 01:23:53 PM EST
:Local ID                      62628fa3-f0c7-4709-9ce5-a9056955b816
:
:Raw Audit Messages
:type=AVC msg=audit(1320863033.898:97): avc:  denied  { read } for  pid=1006 comm="dbus-daemon" path="/home/sgehwolf/.local/share/icc/edid-f3cb78d57dd3a32819fae1a62448db0b.icc" dev=0:22 ino=63269373 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:nfs_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1320863033.898:97): arch=x86_64 syscall=recvmsg success=yes exit=414 a0=20 a1=7fff82bb9210 a2=40000000 a3=0 items=0 ppid=1 pid=1006 auid=4294967295 uid=81 gid=81 euid=81 suid=81 fsuid=81 egid=81 sgid=81 fsgid=81 tty=(none) ses=4294967295 comm=dbus-daemon exe=/bin/dbus-daemon subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 key=(null)
:
:Hash: dbus-daemon,system_dbusd_t,nfs_t,file,read
:
:audit2allow
:
:#============= system_dbusd_t ==============
:#!!!! This avc can be allowed using the boolean 'use_nfs_home_dirs'
:
:allow system_dbusd_t nfs_t:file read;
:
:audit2allow -R
:
:#============= system_dbusd_t ==============
:#!!!! This avc can be allowed using the boolean 'use_nfs_home_dirs'
:
:allow system_dbusd_t nfs_t:file read;
:

Comment 1 Severin Gehwolf 2011-11-09 18:35:43 UTC
Perhaps I have my system misconfigured. Note that /home is NFS in my case. If I have SELinux on, Gnome3 refuses to start due to the above SELinux denial (at least that's what I think). If I turn SELinux off, Gnome3 starts fine and uses my NFS /home.

Thoughts?

Comment 2 Daniel Walsh 2011-11-09 19:00:13 UTC
# setsebool -P use_nfs_home_dirs 1

Comment 3 Severin Gehwolf 2011-11-09 19:23:54 UTC
Thanks!

Comment 4 Daniel Walsh 2011-11-09 19:51:09 UTC
Actually this problem triggered me to fix a bug in setroubleshoot, that should have pointed this out to you as the first option.

setroubleshoot-plugins-3.0.17-1.fc16 Will have the fix.


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