Bug 1727197 - SELinux is preventing gnome-shell from 'map' accesses on the directory /var/lib/gdm/.cache/fontconfig.
Summary: SELinux is preventing gnome-shell from 'map' accesses on the directory /var/l...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 30
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0509bfe660074e5916a4f707762...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-05 01:51 UTC by mb272936
Modified: 2019-07-13 01:06 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.14.3-40.fc30
Clone Of:
Environment:
Last Closed: 2019-07-13 01:06:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description mb272936 2019-07-05 01:51:54 UTC
Description of problem:
I don't know how it happened.  I receive the SELinux alert every day or so.
SELinux is preventing gnome-shell from 'map' accesses on the directory /var/lib/gdm/.cache/fontconfig.

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

If you believe that gnome-shell should be allowed map access on the fontconfig directory 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 'gnome-shell' --raw | audit2allow -M my-gnomeshell
# semodule -X 300 -i my-gnomeshell.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:xdm_var_lib_t:s0
Target Objects                /var/lib/gdm/.cache/fontconfig [ dir ]
Source                        gnome-shell
Source Path                   gnome-shell
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.3-39.fc30.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.1.15-300.fc30.x86_64 #1 SMP Tue
                              Jun 25 14:07:22 UTC 2019 x86_64 x86_64
Alert Count                   114
First Seen                    2019-06-21 15:12:58 EDT
Last Seen                     2019-07-04 07:47:40 EDT
Local ID                      413097da-9a47-4b32-b2d7-82cd417dcfa6

Raw Audit Messages
type=AVC msg=audit(1562240860.325:295): avc:  denied  { map } for  pid=1710 comm="gsd-xsettings" path="/var/lib/gdm/.cache/fontconfig" dev="dm-6" ino=657980 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:xdm_var_lib_t:s0 tclass=dir permissive=0


Hash: gnome-shell,xdm_t,xdm_var_lib_t,dir,map

Version-Release number of selected component:
selinux-policy-3.14.3-39.fc30.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.0
hashmarkername: setroubleshoot
kernel:         5.1.15-300.fc30.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2019-07-08 14:31:22 UTC
commit 16e99120996d1755b18d042e31cd30bad7687228
Author: Lukas Vrabec <lvrabec>
Date:   Mon Jul 1 12:47:11 2019 +0200

    Allow xdm_t domain to mmap /var/lib/gdm/.cache/fontconfig BZ(1725509)

Comment 2 Fedora Update System 2019-07-10 12:46:24 UTC
FEDORA-2019-9c513c4cf8 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-9c513c4cf8

Comment 3 Fedora Update System 2019-07-11 00:50:26 UTC
selinux-policy-3.14.3-40.fc30 has been pushed to the Fedora 30 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-2019-9c513c4cf8

Comment 4 Fedora Update System 2019-07-13 01:06:42 UTC
selinux-policy-3.14.3-40.fc30 has been pushed to the Fedora 30 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.