Bug 1613969

Summary: SELinux is preventing colord from 'map' accesses on the file /home/myuser/.local/share/icc/edid-e6a5375115240064bcc0d7209d55eed8.icc.
Product: [Fedora] Fedora Reporter: dan
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:47e333ed972c1dd3d02496985b28e15e12e425162523cef0e356ff811a06d969;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.14.1-40.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-15 11:38:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description dan 2018-08-08 16:25:33 UTC
Description of problem:
SELinux is preventing colord from 'map' accesses on the file /home/dan/.local/share/icc/edid-e6a5375115240064bcc0d7209d55eed8.icc.

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

If you believe that colord should be allowed map access on the edid-e6a5375115240064bcc0d7209d55eed8.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:
# ausearch -c 'colord' --raw | audit2allow -M my-colord
# semodule -X 300 -i my-colord.pp

Additional Information:
Source Context                system_u:system_r:colord_t:s0
Target Context                system_u:object_r:nfs_t:s0
Target Objects                /home/dan/.local/share/icc/edid-e6a5375115240064bc
                              c0d7209d55eed8.icc [ file ]
Source                        colord
Source Path                   colord
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.1-37.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.17.11-200.fc28.x86_64 #1 SMP Mon
                              Jul 30 15:21:09 UTC 2018 x86_64 x86_64
Alert Count                   66
First Seen                    2018-07-28 20:25:44 EDT
Last Seen                     2018-08-08 12:21:01 EDT
Local ID                      718c6c35-d72b-44c6-ac8b-3d80cf31164e

Raw Audit Messages
type=AVC msg=audit(1533745261.768:258): avc:  denied  { map } for  pid=1799 comm="colord" path="/home/dan/.local/share/icc/edid-e6a5375115240064bcc0d7209d55eed8.icc" dev="0:53" ino=62394711 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:nfs_t:s0 tclass=file permissive=0


Hash: colord,colord_t,nfs_t,file,map

Version-Release number of selected component:
selinux-policy-3.14.1-37.fc28.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.17.11-200.fc28.x86_64
type:           libreport

Comment 1 Fedora Update System 2018-08-10 17:56:33 UTC
selinux-policy-3.14.1-40.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-46564d0139

Comment 2 Fedora Update System 2018-08-14 22:40:29 UTC
selinux-policy-3.14.1-40.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-46564d0139

Comment 3 dan 2018-08-15 11:38:28 UTC
Applied.  Verified as fixed.  Can be closed.

Comment 4 Fedora Update System 2018-08-16 08:06:11 UTC
selinux-policy-3.14.1-40.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.