Bug 809661 - SELinux is preventing /usr/bin/evince-thumbnailer from 'create' accesses on the file missfont.log.
Summary: SELinux is preventing /usr/bin/evince-thumbnailer from 'create' accesses on t...
Keywords:
Status: CLOSED ERRATA
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:baf975dba35f811b784ebf0bd7f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-04 00:33 UTC by Amir Hedayaty
Modified: 2012-05-16 15:12 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-16 15:12:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Amir Hedayaty 2012-04-04 00:33:46 UTC
libreport version: 2.0.10
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.0-1.fc17.x86_64
time:           Tue 03 Apr 2012 05:33:34 PM PDT

description:
:SELinux is preventing /usr/bin/evince-thumbnailer from 'create' accesses on the file missfont.log.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that evince-thumbnailer should be allowed create access on the missfont.log 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:
:# 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                unconfined_u:object_r:user_home_dir_t:s0
:Target Objects                missfont.log [ file ]
:Source                        evince-thumbnai
:Source Path                   /usr/bin/evince-thumbnailer
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           evince-3.4.0-1.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-106.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.0-1.fc17.x86_64 #1 SMP Mon
:                              Mar 19 03:03:39 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    Mon 02 Apr 2012 02:28:20 PM PDT
:Last Seen                     Mon 02 Apr 2012 02:28:20 PM PDT
:Local ID                      1d693434-d481-41b9-b812-fb521ce26853
:
:Raw Audit Messages
:type=AVC msg=audit(1333402100.256:384): avc:  denied  { create } for  pid=7944 comm="evince-thumbnai" name="missfont.log" scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file
:
:
:type=AVC msg=audit(1333402100.256:384): avc:  denied  { append open } for  pid=7944 comm="evince-thumbnai" name="missfont.log" dev="sda3" ino=265929 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1333402100.256:384): arch=x86_64 syscall=open success=yes exit=ENXIO a0=7f0bbc0b68e6 a1=441 a2=1b6 a3=238 items=0 ppid=1796 pid=7944 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,user_home_dir_t,file,create
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Miroslav Grepl 2012-04-04 08:25:29 UTC
Where is missfont.log located? I think your home dir is mislabeled?

ls -Z PATHO/missfont.log

Comment 2 Amir Hedayaty 2012-04-04 15:07:46 UTC
-rw-rw-r--. amir amir unconfined_u:object_r:user_home_t:s0 missfont.log

resotrecon does not help either! I am getting a lot of SELINUX errors, have tried recently but in the early alpha days could not even log in with selinux enforcing.

Comment 3 Miroslav Grepl 2012-04-04 17:11:42 UTC
What is a path to missfont.log?

Comment 4 Amir Hedayaty 2012-04-04 17:30:53 UTC
in the home, evince puts it over ther

Comment 5 Amir Hedayaty 2012-04-04 17:31:08 UTC
in the home, evince puts it over there

Comment 6 Miroslav Grepl 2012-04-05 13:26:28 UTC
So you are saying 

/home/<user>/missfont.log

?

Comment 7 Amir Hedayaty 2012-04-05 15:48:40 UTC
yes

Comment 8 Daniel Walsh 2012-04-09 20:01:01 UTC
Any idea where this file came from?  I do not see missfont.log in evince package.


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