Bug 721156

Summary: SELinux is preventing /usr/lib/chromium-browser/chromium-browser from 'execmod' accesses on the file /usr/lib/libffmpegsumo.so.0.0.0.
Product: [Fedora] Fedora Reporter: Jann Horn <jannhorn>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, jlbouras, mgrepl, tcallawa
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:e2c349cfe75f4ed43eaccf779e0ac31fa82c5ed4dda4749faea1f744e860da7c
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-20 21:43:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jann Horn 2011-07-13 21:24:13 UTC
SELinux is preventing /usr/lib/chromium-browser/chromium-browser from 'execmod' accesses on the file /usr/lib/libffmpegsumo.so.0.0.0.

*****  Plugin allow_execmod (91.4 confidence) suggests  **********************

If you want to allow chromium-browser to have execmod access on the libffmpegsumo.so.0.0.0 file
Then you need to change the label on '/usr/lib/libffmpegsumo.so.0.0.0'
Do
# semanage fcontext -a -t textrel_shlib_t '/usr/lib/libffmpegsumo.so.0.0.0'
# restorecon -v '/usr/lib/libffmpegsumo.so.0.0.0'

*****  Plugin catchall (9.59 confidence) suggests  ***************************

If you believe that chromium-browser should be allowed execmod access on the libffmpegsumo.so.0.0.0 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 chromium-browse /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c
                              0.c1023
Target Context                system_u:object_r:lib_t:s0
Target Objects                /usr/lib/libffmpegsumo.so.0.0.0 [ file ]
Source                        chromium-browse
Source Path                   /usr/lib/chromium-browser/chromium-browser
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           chromium-12.0.742.112-1.fc15
Target RPM Packages           chromium-ffmpegsumo-11.0.696.68-1.fc15
Policy RPM                    selinux-policy-3.9.16-26.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.8-35.fc15.i686 #1 SMP Wed Jul
                              6 14:46:26 UTC 2011 i686 i686
Alert Count                   3
First Seen                    Mi 13 Jul 2011 23:21:28 CEST
Last Seen                     Mi 13 Jul 2011 23:21:28 CEST
Local ID                      9a710a3b-dda0-42a0-acc0-3e3cf0c10bc2

Raw Audit Messages
type=AVC msg=audit(1310592088.583:97): avc:  denied  { execmod } for  pid=32019 comm="chromium-browse" path="/usr/lib/libffmpegsumo.so.0.0.0" dev=dm-2 ino=152126 scontext=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file


type=SYSCALL msg=audit(1310592088.583:97): arch=i386 syscall=mprotect success=no exit=EACCES a0=4ac9000 a1=e7000 a2=5 a3=bfad0110 items=0 ppid=0 pid=32019 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=chromium-browse exe=/usr/lib/chromium-browser/chromium-browser subj=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 key=(null)

Hash: chromium-browse,chrome_sandbox_t,lib_t,file,execmod

audit2allow

#============= chrome_sandbox_t ==============
allow chrome_sandbox_t lib_t:file execmod;

audit2allow -R

#============= chrome_sandbox_t ==============
allow chrome_sandbox_t lib_t:file execmod;

Comment 1 Daniel Walsh 2011-07-14 14:31:33 UTC
The Alert tells you what to do.

Comment 2 Jann Horn 2011-07-14 16:30:26 UTC
Daniel Walsh: True, but I don't think that it's a good idea to force every chromium user to do this in order to be able to play html5 videos. Wouldn't it be a sensible default to allow applications to do what they're supposed to do?

Comment 3 Daniel Walsh 2011-07-14 17:44:02 UTC
Who shipped /usr/lib/libffmpegsumo.so.0.0.0?

They built it incorrectly.  We are trying to confine chrome-sandbox to work with only well made libraries.

Comment 4 Tom "spot" Callaway 2011-07-20 18:41:27 UTC
Dan, it's one of mine.

Comment 5 Daniel Walsh 2011-07-20 21:43:28 UTC
Fixed in selinux-policy-3.10.0-7.fc16