Bug 722570

Summary: SELinux is preventing dbus-daemon from 'read' accesses on the file /home/vonbrand/.local/share/icc/edid-299288ae70ac60c44d0a175e9adb988e.icc.
Product: [Fedora] Fedora Reporter: Horst H. von Brand <vonbrand>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:b73cae24c1a4e7d7a656ebde263e0f2dcc5c9570571be7b9e0de676e4ef5bff4
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-19 11:33:21 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 Horst H. von Brand 2011-07-15 17:00:30 UTC
SELinux is preventing dbus-daemon from 'read' accesses on the file /home/vonbrand/.local/share/icc/edid-299288ae70ac60c44d0a175e9adb988e.icc.

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

If you believe that dbus-daemon should be allowed read access on the edid-299288ae70ac60c44d0a175e9adb988e.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                unconfined_u:object_r:data_home_t:s0
Target Objects                /home/vonbrand/.local/share/icc/edid-
                              299288ae70ac60c44d0a175e9adb988e.icc [ file ]
Source                        dbus-daemon
Source Path                   dbus-daemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-2.fc16
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              3.0-0.rc6.git6.1.fc16.x86_64 #1 SMP Sun Jul 10
                              16:00:07 UTC 2011 x86_64 x86_64
Alert Count                   11
First Seen                    Thu 09 Jun 2011 07:17:17 PM CLT
Last Seen                     Fri 15 Jul 2011 12:20:53 PM CLT
Local ID                      7a3f6c33-162e-4c00-a3d2-d6b068fef3c6

Raw Audit Messages
type=AVC msg=audit(1310746853.910:45): avc:  denied  { read } for  pid=809 comm="dbus-daemon" path="/home/vonbrand/.local/share/icc/edid-299288ae70ac60c44d0a175e9adb988e.icc" dev=dm-3 ino=398721 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:data_home_t:s0 tclass=file


Hash: dbus-daemon,system_dbusd_t,data_home_t,file,read

audit2allow

#============= system_dbusd_t ==============
allow system_dbusd_t data_home_t:file read;

audit2allow -R

#============= system_dbusd_t ==============
allow system_dbusd_t data_home_t:file read;

Comment 1 Dominick Grift 2011-07-15 17:03:32 UTC
restorecon -R -v /home 

should fix it

$ matchpathcon /home/vonbrand/.local/share/icc/edid-299288ae70ac60c44d0a175e9adb988e.icc
/home/vonbrand/.local/share/icc/edid-299288ae70ac60c44d0a175e9adb988e.icc       user_u:object_r:icc_data_home_t:s0