Bug 794769

Summary: SELinux is preventing /usr/libexec/colord from read, search access on the None /media/4a52816f-8015-4cbf-b47b-d7fdbba4a929.
Product: [Fedora] Fedora Reporter: Jörg BUCHMANN <jorg>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:db94145ff3df3f0d30b34499fdbdafd2e2c4052a4115c6a4dfe4cec5821dc6a9
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-20 15:32:33 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 Jörg BUCHMANN 2012-02-17 15:18:42 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.6-3.fc16.x86_64
reason:         SELinux is preventing /usr/libexec/colord from read, search access on the None /media/4a52816f-8015-4cbf-b47b-d7fdbba4a929.
time:           ven. 17 févr. 2012 16:18:32 CET

description:
:SELinux is preventing /usr/libexec/colord from read, search access on the None /media/4a52816f-8015-4cbf-b47b-d7fdbba4a929.
:
:*****  Plugin file (47.5 confidence) suggests  *******************************
:
:If you think this is caused by a badly mislabeled machine.
:Then you need to fully relabel.
:Do
:touch /.autorelabel; reboot
:
:*****  Plugin file (47.5 confidence) suggests  *******************************
:
:If you think this is caused by a badly mislabeled machine.
:Then you need to fully relabel.
:Do
:touch /.autorelabel; reboot
:
:*****  Plugin catchall (6.38 confidence) suggests  ***************************
:
:If you believe that colord should be allowed read search access on the 4a52816f-8015-4cbf-b47b-d7fdbba4a929 <Inconnu> 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 colord /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:colord_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:file_t:s0
:Target Objects                /media/4a52816f-8015-4cbf-b47b-d7fdbba4a929 [ None
:                              ]
:Source                        colord
:Source Path                   /usr/libexec/colord
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           colord-0.1.15-2.fc16.x86_64
:                              colord-0.1.15-2.fc16.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.6-3.fc16.x86_64 #1 SMP Mon
:                              Feb 13 20:35:42 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    ven. 17 févr. 2012 16:17:46 CET
:Last Seen                     ven. 17 févr. 2012 16:17:46 CET
:Local ID                      cb9f8542-b519-4e4a-a065-4119e9a356b2
:
:Raw Audit Messages
:type=AVC msg=audit(1329491866.947:486): avc:  denied  { read search } for  pid=3894 comm="colord" name="/" dev=sdb2 ino=2 scontext=system_u:system_r:colord_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=dirnode=(removed) type=SYSCALL msg=audit(1329491866.947:486): arch=c000003e syscall=21 success=no exit=-13 a0=21b3d10 a1=5 a2=7fff6e6cdd40 a3=1 items=0 ppid=1 pid=3894 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="colord" exe="/usr/libexec/colord" subj=system_u:system_r:colord_t:s0-s0:c0.c1023 key=(null)
:
:
:Hash: colord,colord_t,file_t,None,read,search
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-02-20 15:32:33 UTC
You need to fix labeling for /mnt/4a52816f-8015-4cbf-b47b-d7fdbba4a929.

$ restorecon -R -v /mnt/4a52816f-8015-4cbf-b47b-d7fdbba4a929

There is Dan's blog with with more details

http://danwalsh.livejournal.com/42768.html