Bug 1211799 - SELinux is preventing /opt/google/chrome/chrome-sandbox from 'write' accesses on the file .
Summary: SELinux is preventing /opt/google/chrome/chrome-sandbox from 'write' accesses...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:970de26506863147140f7a67a03...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-14 22:57 UTC by Greg
Modified: 2015-04-15 14:29 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-04-15 14:29:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Greg 2015-04-14 22:57:48 UTC
Description of problem:
Launch Google Chrome
SE alert generated on launch.
SELinux is preventing /opt/google/chrome/chrome-sandbox from 'write' accesses on the file .

*****  Plugin chrome (98.5 confidence) suggests   ****************************

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

*****  Plugin catchall (2.46 confidence) suggests   **************************

If you believe that chrome-sandbox should be allowed write access on the  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-sandbox /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:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Objects                 [ file ]
Source                        chrome-sandbox
Source Path                   /opt/google/chrome/chrome-sandbox
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           google-chrome-stable-42.0.2311.90-1.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-197.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.19.3-100.fc20.x86_64 #1 SMP Fri
                              Mar 27 16:53:47 UTC 2015 x86_64 x86_64
Alert Count                   13
First Seen                    2015-04-14 15:38:28 PDT
Last Seen                     2015-04-14 15:38:29 PDT
Local ID                      6724cb7f-c7a0-43f8-9b61-40ba6e043a81

Raw Audit Messages
type=AVC msg=audit(1429051109.767:608): avc:  denied  { write } for  pid=6445 comm="chrome-sandbox" name="oom_adj" dev="proc" ino=71532 scontext=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=file permissive=0


type=SYSCALL msg=audit(1429051109.767:608): arch=x86_64 syscall=openat success=no exit=EACCES a0=3 a1=402138 a2=1 a3=0 items=0 ppid=6296 pid=6445 auid=1000 uid=1000 gid=1000 euid=0 suid=0 fsuid=0 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=1 comm=chrome-sandbox exe=/opt/google/chrome/chrome-sandbox subj=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 key=(null)

Hash: chrome-sandbox,chrome_sandbox_t,unconfined_t,file,write

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.19.3-100.fc20.x86_64
type:           libreport

Potential duplicate: bug 896177

Comment 1 Veteran 2015-04-15 03:14:00 UTC
Description of problem:
I recently updated Google Chrome. When I started it tonight (Clicked Chrome in XFCE Internet menu/Fedora 20 xfce spin) the SELINUX alert popped up.

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.19.3-100.fc20.x86_64
type:           libreport

Comment 2 J Waldo 2015-04-15 10:43:08 UTC
Description of problem:
Started after updating to google-chrome-stable-42.0.2311.90-1.x86_64

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.18.9-100.fc20.x86_64
type:           libreport

Comment 3 Lukas Vrabec 2015-04-15 14:29:37 UTC
Fix is in your report:

*****  Plugin chrome (98.5 confidence) suggests   ****************************

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


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