Bug 960792 (chromelog)
| Summary: | SELinux is preventing /opt/google/chrome/chrome from 'create' accesses on the file libpeerconnection.log. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mikhail <mikhail.v.gavrilov> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 19 | CC: | benoit.huron, brian.murrell, dominick.grift, dwalsh, elad, ifernandez.aquino, ignatenko, j_griffith, keramidasceid, maurizio.antillon, mgrepl, old.uncle.z, patrys, raorn, saintjohnpublic, scottt.tw, spetreolle, steevithak, vadims.zenins |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:fb1d799747ec487b476427d74cb3acb8d901b570d3e847a201a8e55c0978316a | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-05-12 11:04: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: | |
| Embargoed: | |||
Happens with google-chrome-unstable-28.0.1500.3-198635.x86_64 May be caused by upstream commiit http://git.chromium.org/gitweb/?p=chromium.git;a=commitdiff;h=57102aee28d22b6abd8356ed6959c915e7d5301e File third_party/libjingle/overrides/initialize_module.cc Can you open a bug with them to not clutter up the homedir, stuff like that should be put into ~/.cache Preferably in ~/.cache/chrome I have ~/.cache/chromium on my box. Agreed. I have ~/.cache/google-chrome for Chrome. I don't even think that using log file is needed in this place... https://code.google.com/p/chromium/issues/detail?id=239048 *** Bug 960956 has been marked as a duplicate of this bug. *** Seems to be fixed in upstream by https://chromiumcodereview.appspot.com/14617016 Excellent, SELinux is a pretty good bug detecting tool. :^) Closing as NOTABUG. SELinux has done its job well by preventing chrome from writing this file. I don't think we should change the policy on that regard. *** Bug 967120 has been marked as a duplicate of this bug. *** *** Bug 975393 has been marked as a duplicate of this bug. *** Using the solution provided by the SELinux Alert Browser: grep chrome /var/log/audit/audit.log | audit2allow -M mypol semodule -i mypol.pp does not fix the problem. Any recommendation on how to fix this, since a new policy will not be added to selinux-policy? Just ignore this warning until chrome is updated. Dev channel already contains fix, Beta and Stable may still have this issue. *** Bug 978610 has been marked as a duplicate of this bug. *** *** Bug 979640 has been marked as a duplicate of this bug. *** To temporarily solve the problem just edit the file: /opt/google/chrome/google-chrome and change the line before the command exec-a "$ 0" "$ HERE / chrome" "$ @" adding the line cd /tmp or any other directory where you want the file to be created. *** Bug 981536 has been marked as a duplicate of this bug. *** *** Bug 981621 has been marked as a duplicate of this bug. *** *** Bug 986562 has been marked as a duplicate of this bug. *** *** Bug 1083593 has been marked as a duplicate of this bug. *** |
Description of problem: SELinux is preventing /opt/google/chrome/chrome from 'create' accesses on the file libpeerconnection.log. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that chrome should be allowed create access on the libpeerconnection.log 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 chrome /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 unconfined_u:object_r:user_home_dir_t:s0 Target Objects libpeerconnection.log [ file ] Source chrome Source Path /opt/google/chrome/chrome Port <Unknown> Host (removed) Source RPM Packages google-chrome-unstable-28.0.1500.3-198635.i386 Target RPM Packages Policy RPM selinux-policy-3.12.1-42.fc19.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 3.9.0-301.fc19.i686.PAE #1 SMP Mon Apr 29 13:55:54 UTC 2013 i686 i686 Alert Count 1 First Seen 2013-05-08 08:08:33 YEKT Last Seen 2013-05-08 08:08:33 YEKT Local ID a69213ce-ff03-4f22-8654-711324d0a39d Raw Audit Messages type=AVC msg=audit(1367978913.148:462): avc: denied { create } for pid=2054 comm="chrome" name="libpeerconnection.log" scontext=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file type=SYSCALL msg=audit(1367978913.148:462): arch=i386 syscall=open success=no exit=EACCES a0=b86191bc a1=8441 a2=1b6 a3=b863eb00 items=0 ppid=0 pid=2054 auid=1000 uid=1000 gid=0 euid=1000 suid=1000 fsuid=1000 egid=0 sgid=0 fsgid=0 ses=1 tty=pts1 comm=chrome exe=/opt/google/chrome/chrome subj=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 key=(null) Hash: chrome,chrome_sandbox_t,user_home_dir_t,file,create audit2allow #============= chrome_sandbox_t ============== allow chrome_sandbox_t user_home_dir_t:file create; audit2allow -R require { type chrome_sandbox_t; type user_home_dir_t; class file create; } #============= chrome_sandbox_t ============== allow chrome_sandbox_t user_home_dir_t:file create; Additional info: reporter: libreport-2.1.4 hashmarkername: setroubleshoot kernel: 3.9.0-301.fc19.i686.PAE type: libreport