Bug 803058 - SELinux is preventing /usr/bin/evince from 'write' accesses on the directory /home/frieben/Documents.
SELinux is preventing /usr/bin/evince from 'write' accesses on the directory ...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
: 803060 803061 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2012-03-13 17:17 EDT by Joachim Frieben
Modified: 2012-03-14 08:43 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-03-14 06:00:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Joachim Frieben 2012-03-13 17:17:15 EDT
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

: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.
: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 05:50:27 EDT
*** Bug 803060 has been marked as a duplicate of this bug. ***
Comment 2 Miroslav Grepl 2012-03-14 05:50:31 EDT
*** Bug 803061 has been marked as a duplicate of this bug. ***
Comment 3 Miroslav Grepl 2012-03-14 06:00:33 EDT
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 08:43:35 EDT
Or remove mozplugger

yum remove mozplugger

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