Bug 881883 - SELinux is preventing /usr/bin/evince-thumbnailer from 'setattr' accesses on the directory /var/cache/fontconfig.
Summary: SELinux is preventing /usr/bin/evince-thumbnailer from 'setattr' accesses on ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:946a8c83e0ff1c89e337979d637...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-29 18:08 UTC by Nicolas Chauvet (kwizart)
Modified: 2013-01-07 04:02 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-07 04:02:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-11-29 18:08 UTC, Nicolas Chauvet (kwizart)
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-11-29 18:08 UTC, Nicolas Chauvet (kwizart)
no flags Details

Description Nicolas Chauvet (kwizart) 2012-11-29 18:08:25 UTC
Description of problem:
Plugin USB key formated in vfat. (so no selinux label).

Additional info:
libreport version: 2.0.18
kernel:         3.6.7-4.fc17.x86_64

description:
:SELinux is preventing /usr/bin/evince-thumbnailer from 'setattr' accesses on the directory /var/cache/fontconfig.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that evince-thumbnailer should be allowed setattr 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:
:# grep evince-thumbnai /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:fonts_cache_t:s0
:Target Objects                /var/cache/fontconfig [ dir ]
:Source                        evince-thumbnai
:Source Path                   /usr/bin/evince-thumbnailer
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           evince-3.4.0-2.fc17.x86_64
:Target RPM Packages           fontconfig-2.8.0-8.fc17.x86_64
:                              fontconfig-2.8.0-8.fc17.i686
:Policy RPM                    selinux-policy-3.10.0-161.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.7-4.fc17.x86_64 #1 SMP Tue Nov
:                              20 19:40:01 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-11-29 19:05:40 CET
:Last Seen                     2012-11-29 19:05:40 CET
:Local ID                      693ee111-37e1-4ef3-a636-07c18a6a767c
:
:Raw Audit Messages
:type=AVC msg=audit(1354212340.586:231): avc:  denied  { setattr } for  pid=4314 comm="evince-thumbnai" name="fontconfig" dev="sdb5" ino=5936 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:fonts_cache_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1354212340.586:231): arch=x86_64 syscall=chmod success=no exit=EACCES a0=1e39770 a1=1ed a2=d a3=10 items=0 ppid=2923 pid=4314 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=evince-thumbnai exe=/usr/bin/evince-thumbnailer subj=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 key=(null)
:
:Hash: evince-thumbnai,thumb_t,fonts_cache_t,dir,setattr
:
:audit2allow
:
:#============= thumb_t ==============
:allow thumb_t fonts_cache_t:dir setattr;
:
:audit2allow -R
:
:#============= thumb_t ==============
:allow thumb_t fonts_cache_t:dir setattr;
:

Comment 1 Nicolas Chauvet (kwizart) 2012-11-29 18:08:29 UTC
Created attachment 654433 [details]
File: type

Comment 2 Nicolas Chauvet (kwizart) 2012-11-29 18:08:31 UTC
Created attachment 654434 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-11-30 10:13:00 UTC
I added it to F18 

commit 75fac74187ce087ed081883b4c0554e7d230695b
Author: Miroslav Grepl <mgrepl>
Date:   Fri Nov 30 11:08:13 2012 +0100

    Dontaudit setattr on fontconfig dir for thumb_t

and backported to F17.

commit ab6f314ec12313ed3dbfc7564d1a7458b3ddd5c2
Author: Miroslav Grepl <mgrepl>
Date:   Fri Nov 30 11:11:07 2012 +0100

    Backport thumb.te from F18

Comment 4 Fedora Update System 2012-12-17 18:43:01 UTC
selinux-policy-3.10.0-165.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-165.fc17

Comment 5 Fedora Update System 2012-12-18 02:38:53 UTC
Package selinux-policy-3.10.0-165.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-165.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-165.fc17
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-01-05 06:43:37 UTC
Package selinux-policy-3.10.0-166.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-166.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-166.fc17
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-01-07 04:02:27 UTC
selinux-policy-3.10.0-166.fc17 has been pushed to the Fedora 17 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.