Bug 1511685 - SELinux is preventing totem-video-thu from 'map' accesses on the archivo /var/lib/flatpak/exports/share/mime/mime.cache.
Summary: SELinux is preventing totem-video-thu from 'map' accesses on the archivo /var...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6440490189ac9c43c58beee7325...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-09 20:56 UTC by Juanbi
Modified: 2018-01-10 02:06 UTC (History)
8 users (show)

Fixed In Version: selinux-policy-3.13.1-283.21.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-10 02:06:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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