Bug 1511685

Summary: SELinux is preventing totem-video-thu from 'map' accesses on the archivo /var/lib/flatpak/exports/share/mime/mime.cache.
Product: [Fedora] Fedora Reporter: Juanbi <juantonio>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: 7d28c752, dwalsh, fmuro, juantonio, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:6440490189ac9c43c58beee732557a2d600f5775bb426d30b861f77de3122b47;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.13.1-283.21.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-10 02:06:23 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 Juanbi 2017-11-09 20:56:32 UTC
Description of problem:
SELinux is preventing totem-video-thu from 'map' accesses on the archivo /var/lib/flatpak/exports/share/mime/mime.cache.

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

If cree que de manera predeterminada, totem-video-thu debería permitir acceso map sobre mime.cache file.     
Then debería reportar esto como un error.
Puede generar un módulo de política local para permitir este acceso.
Do
allow this access for now by executing:
# ausearch -c 'totem-video-thu' --raw | audit2allow -M my-totemvideothu
# semodule -X 300 -i my-totemvideothu.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Context                system_u:object_r:var_lib_t:s0
Target Objects                /var/lib/flatpak/exports/share/mime/mime.cache [
                              file ]
Source                        totem-video-thu
Source Path                   totem-video-thu
Port                          <Desconocido>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-283.14.fc27.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.13.9-300.fc27.x86_64 #1 SMP Mon
                              Oct 23 13:41:58 UTC 2017 x86_64 x86_64
Alert Count                   14
First Seen                    2017-11-09 21:54:20 CET
Last Seen                     2017-11-09 21:54:23 CET
Local ID                      23bf1cf8-5991-4ad4-9db1-abcbfffa67a2

Raw Audit Messages
type=AVC msg=audit(1510260863.147:278): avc:  denied  { map } for  pid=2731 comm="totem-video-thu" path="/var/lib/flatpak/exports/share/mime/mime.cache" dev="dm-0" ino=1181909 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_lib_t:s0 tclass=file permissive=0


Hash: totem-video-thu,thumb_t,var_lib_t,file,map

Version-Release number of selected component:
selinux-policy-3.13.1-283.14.fc27.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.2
hashmarkername: setroubleshoot
kernel:         4.13.9-300.fc27.x86_64
type:           libreport

Comment 1 Fernando 2017-11-29 18:27:30 UTC
Description of problem:
Importing picture from phone with gthumb.

Version-Release number of selected component:
selinux-policy-3.13.1-283.16.fc27.noarch

Additional info:
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.13.15-300.fc27.x86_64
type:           libreport

Comment 2 Lukas Vrabec 2017-12-12 11:08:32 UTC
Could you attach output of:

# rpm -qf /var/lib/flatpak

THanks,
Lukas.

Comment 3 Fernando 2017-12-12 16:02:33 UTC
flatpak-0.10.1-1.fc27.x86_64

You're welcome.

Comment 4 Fedora Update System 2018-01-05 14:45:28 UTC
selinux-policy-3.13.1-283.21.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0d8506aba4

Comment 5 Fedora Update System 2018-01-05 14:48:42 UTC
selinux-policy-3.13.1-283.21.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0d8506aba4

Comment 6 Fedora Update System 2018-01-06 21:08:20 UTC
selinux-policy-3.13.1-283.21.fc27 has been pushed to the Fedora 27 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-0d8506aba4

Comment 7 Fedora Update System 2018-01-10 02:06:23 UTC
selinux-policy-3.13.1-283.21.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.