Bug 1470267 - selinux policy blocking gnome-shell from settattr on fontcache
selinux policy blocking gnome-shell from settattr on fontcache
Status: NEW
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
26
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Lukas Vrabec
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-12 11:52 EDT by Adam Miller
Modified: 2018-05-03 03:58 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adam Miller 2017-07-12 11:52:45 EDT
Description of problem:

$ sealert -l  62aa2d40-9cd7-444c-bca9-a6f26bd0c1f0
SELinux is preventing gnome-shell from setattr access on the directory /usr/lib/fontconfig/cache.

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

If you believe that gnome-shell should be allowed setattr access on the cache 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:lib_t:s0
Target Objects                /usr/lib/fontconfig/cache [ dir ]
Source                        gnome-shell
Source Path                   gnome-shell
Port                          <Unknown>
Host                          pseudogen
Source RPM Packages
Target RPM Packages           fontconfig-2.12.1-4.fc26.x86_64
Policy RPM                    selinux-policy-3.13.1-259.fc26.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     pseudogen
Platform                      Linux pseudogen 4.11.9-300.fc26.x86_64 #1 SMP Wed
                              Jul 5 16:21:56 UTC 2017 x86_64 x86_64
Alert Count                   16
First Seen                    2017-07-12 10:27:14 CDT
Last Seen                     2017-07-12 10:27:14 CDT
Local ID                      62aa2d40-9cd7-444c-bca9-a6f26bd0c1f0

Raw Audit Messages
type=AVC msg=audit(1499873234.851:1324): avc:  denied  { setattr } for  pid=1771 comm="gsd-color" name="cache" dev="dm-1" ino=921908 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=dir permissive=0


Hash: gnome-shell,xdm_t,lib_t,dir,setattr

Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.13.1-259.fc26.noarch

How reproducible:
Always

Steps to Reproduce:
1. Edit font settings in gnome-tweak-tool
Comment 1 Fedora End Of Life 2018-05-03 03:58:21 EDT
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

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