Bug 1577601

Summary: SELinux is preventing pool from 'map' accesses on the file /usr/share/fonts/anonymousPro/README.txt.
Product: [Fedora] Fedora Reporter: reiandsweet
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED NOTABUG 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:98192504beb7fe73c82705302e1485efe6de1a57b9cb8a1b698746cf871c4f8f;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-21 16:18:13 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 reiandsweet 2018-05-13 12:13:25 UTC
Description of problem:
SELinux is preventing pool from 'map' accesses on the file /usr/share/fonts/anonymousPro/README.txt.

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

If you believe that pool should be allowed map access on the README.txt 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 'pool' --raw | audit2allow -M my-pool
# semodule -X 300 -i my-pool.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                /usr/share/fonts/anonymousPro/README.txt [ file ]
Source                        pool
Source Path                   pool
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.1-24.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.16.7-300.fc28.x86_64 #1 SMP Wed
                              May 2 20:09:13 UTC 2018 x86_64 x86_64
Alert Count                   12
First Seen                    2018-05-13 08:08:53 EDT
Last Seen                     2018-05-13 08:08:53 EDT
Local ID                      6d40a04b-1419-406a-9734-2c25e6204fe5

Raw Audit Messages
type=AVC msg=audit(1526213333.743:305): avc:  denied  { map } for  pid=1457 comm="pool" path="/usr/share/fonts/anonymousPro/README.txt" dev="dm-0" ino=1600445 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0


Hash: pool,xdm_t,user_home_t,file,map

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

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

Comment 1 Lukas Vrabec 2018-05-21 16:17:55 UTC
Hi, 

Please run:

# restorecon -Rv / 

To fix your issue. Thanks.