Bug 1034146

Summary: SELinux is preventing /usr/sbin/prelink from 'relabelfrom' accesses on the file undo.#prelink#.JSIRiV.
Product: [Fedora] Fedora Reporter: Christian Kujau <redhat>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:4e76f60cfc6b5c636aec94bfd0042d0e5cee823bb1d2b672bd499c9a6a2b8e60
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-25 12:41:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christian Kujau 2013-11-25 10:46:41 UTC
Description of problem:
Every time I visit a web page with Adobe Flash, this SELinux alert is displayed.
SELinux is preventing /usr/sbin/prelink from 'relabelfrom' accesses on the file undo.#prelink#.JSIRiV.

*****  Plugin mozplugger (99.1 confidence) suggests   ************************

If you want to use the plugin package
Then you must turn off SELinux controls on the Firefox plugins.
Do
# setsebool -P unconfined_mozilla_plugin_transition 0

*****  Plugin catchall (1.81 confidence) suggests   **************************

If you believe that prelink should be allowed relabelfrom access on the undo.#prelink#.JSIRiV 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 prelink /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:mozilla_plugin_tmp_t:s0
Target Objects                undo.#prelink#.JSIRiV [ file ]
Source                        prelink
Source Path                   /usr/sbin/prelink
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           prelink-0.5.0-1.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-90.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.8-300.fc20.x86_64 #1 SMP Wed
                              Nov 13 16:34:27 UTC 2013 x86_64 x86_64
Alert Count                   2
First Seen                    2013-11-25 02:42:35 PST
Last Seen                     2013-11-25 02:42:35 PST
Local ID                      a628294e-6955-44c5-bf18-d9ec7e6cb589

Raw Audit Messages
type=AVC msg=audit(1385376155.480:1138): avc:  denied  { relabelfrom } for  pid=16190 comm="prelink" name="undo.#prelink#.JSIRiV" dev="tmpfs" ino=2527583 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:mozilla_plugin_tmp_t:s0 tclass=file


type=SYSCALL msg=audit(1385376155.480:1138): arch=x86_64 syscall=setxattr success=no exit=EACCES a0=7fff55a01260 a1=50b169 a2=1d49780 a3=1b items=0 ppid=16179 pid=16190 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=(none) comm=prelink exe=/usr/sbin/prelink subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: prelink,mozilla_plugin_t,mozilla_plugin_tmp_t,file,relabelfrom

Additional info:
reporter:       libreport-2.1.9
hashmarkername: setroubleshoot
kernel:         3.11.8-300.fc20.x86_64
type:           libreport

Potential duplicate: bug 832613

Comment 1 Miroslav Grepl 2013-11-25 12:41:35 UTC

*** This bug has been marked as a duplicate of bug 832613 ***