Bug 855420 - SELinux is preventing /usr/bin/okular from 'create' accesses on the lnk_file 504a2450e4906.
SELinux is preventing /usr/bin/okular from 'create' accesses on the lnk_file ...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-09-07 12:56 EDT by Chris
Modified: 2012-09-10 03:20 EDT (History)
3 users (show)

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

Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-09-07 12:56 EDT, Chris
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-09-07 12:56 EDT, Chris
no flags Details

  None (edit)
Description Chris 2012-09-07 12:56:36 EDT
Additional info:
libreport version: 2.0.13
kernel:         3.5.3-1.fc17.x86_64

:SELinux is preventing /usr/bin/okular from 'create' accesses on the lnk_file 504a2450e4906.
:*****  Plugin catchall (100. confidence) suggests  ***************************
:If you believe that okular should be allowed create access on the 504a2450e4906 lnk_file 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 okular /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:tmp_t:s0
:Target Objects                504a2450e4906 [ lnk_file ]
:Source                        okular
:Source Path                   /usr/bin/okular
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           okular-4.8.5-3.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-146.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.5.3-1.fc17.x86_64 #1 SMP Wed Aug
:                              29 18:46:34 UTC 2012 x86_64 x86_64
:Alert Count                   142
:First Seen                    2012-09-07 10:43:46 MDT
:Last Seen                     2012-09-07 10:44:00 MDT
:Local ID                      48779943-111d-4500-ac36-63a9e94e2b1f
:Raw Audit Messages
:type=AVC msg=audit(1347036240.935:23748): avc:  denied  { create } for  pid=17089 comm="okular" name="504a2450e4906" scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:tmp_t:s0 tclass=lnk_file
:type=SYSCALL msg=audit(1347036240.935:23748): arch=x86_64 syscall=symlink success=no exit=EACCES a0=7fffaca22e80 a1=13e4564 a2=13e4576 a3=33 items=0 ppid=17088 pid=17089 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=18 comm=okular exe=/usr/bin/okular subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)
:Hash: okular,mozilla_plugin_t,tmp_t,lnk_file,create
:#============= mozilla_plugin_t ==============
:allow mozilla_plugin_t tmp_t:lnk_file create;
:audit2allow -R
:#============= mozilla_plugin_t ==============
:allow mozilla_plugin_t tmp_t:lnk_file create;
Comment 1 Chris 2012-09-07 12:56:38 EDT
Created attachment 610797 [details]
File: type
Comment 2 Chris 2012-09-07 12:56:39 EDT
Created attachment 610798 [details]
File: hashmarkername
Comment 3 Miroslav Grepl 2012-09-10 03:20:27 EDT
If you want to use okular you will need to change the unconfined_mozilla_plugin_transition boolean

Execute in your terminal

# setsebool -P unconfined_mozilla_plugin_transition 0

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