Bug 803058 - SELinux is preventing /usr/bin/evince from 'write' accesses on the directory /home/frieben/Documents.
Summary: SELinux is preventing /usr/bin/evince from 'write' accesses on the directory ...
Keywords:
Status: CLOSED NOTABUG
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:590e4a6e35489fb22cab6dd0552...
: 803060 803061 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-13 21:17 UTC by Joachim Frieben
Modified: 2012-03-14 12:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-14 10:00:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Joachim Frieben 2012-03-13 21:17:15 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.0-0.rc7.git0.2.fc17.x86_64
reason:         SELinux is preventing /usr/bin/evince from 'write' accesses on the directory /home/frieben/Documents.
time:           Tue 13 Mar 2012 10:17:02 PM CET

description:
:SELinux is preventing /usr/bin/evince from 'write' accesses on the directory /home/frieben/Documents.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that evince should be allowed write access on the Documents 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 /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
:                              0.c1023
:Target Context                unconfined_u:object_r:user_home_t:s0
:Target Objects                /home/frieben/Documents [ dir ]
:Source                        evince
:Source Path                   /usr/bin/evince
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           evince-3.3.90-1.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-95.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.0-0.rc7.git0.2.fc17.x86_64 #1 SMP
:                              Mon Mar 12 16:56:58 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    Tue 13 Mar 2012 09:07:48 PM CET
:Last Seen                     Tue 13 Mar 2012 09:07:48 PM CET
:Local ID                      752361d6-c0e7-49de-a17a-d622c01630a3
:
:Raw Audit Messages
:type=AVC msg=audit(1331669268.575:93): avc:  denied  { write } for  pid=2109 comm="evince" name="Documents" dev="dm-2" ino=4194517 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1331669268.575:93): arch=x86_64 syscall=open success=no exit=EACCES a0=1fe8140 a1=c1 a2=1b6 a3=aaaaaaaaaaaaaaab items=0 ppid=2108 pid=2109 auid=1001 uid=1001 gid=100 euid=1001 suid=1001 fsuid=1001 egid=100 sgid=100 fsgid=100 tty=(none) ses=2 comm=evince exe=/usr/bin/evince subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)
:
:Hash: evince,mozilla_plugin_t,user_home_t,dir,write
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Miroslav Grepl 2012-03-14 09:50:27 UTC
*** Bug 803060 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2012-03-14 09:50:31 UTC
*** Bug 803061 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2012-03-14 10:00:33 UTC
Which plugin does it cause?

You will need to turn off this protection

either using

$ setsebool unconfined_mozilla_plugin_transition off

or to make this permanent


$ setsebool -P unconfined_mozilla_plugin_transition 0

Comment 4 Daniel Walsh 2012-03-14 12:43:35 UTC
Or remove mozplugger

yum remove mozplugger


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