Bug 689125 - SELinux is preventing /bin/bash from 'getattr' accesses on the file /usr/share/sandbox/start.
Summary: SELinux is preventing /bin/bash from 'getattr' accesses on the file /usr/shar...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:388e92fd31d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-19 17:41 UTC by Amit Shah
Modified: 2011-03-22 18:51 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.9.7-37.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-22 18:51:42 UTC
Type: ---


Attachments (Terms of Use)

Description Amit Shah 2011-03-19 17:41:29 UTC
SELinux is preventing /bin/bash from 'getattr' accesses on the file /usr/share/sandbox/start.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that bash should be allowed getattr access on the start 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 sandboxX.sh /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:sandbox_web_t:s0:c817,c8
                              86
Target Context                system_u:object_r:sandbox_exec_t:s0
Target Objects                /usr/share/sandbox/start [ file ]
Source                        sandboxX.sh
Source Path                   /bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.1.7-3.fc14
Target RPM Packages           policycoreutils-sandbox-2.0.85-19.fc14
Policy RPM                    selinux-policy-3.9.7-31.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38-1.fc15.x86_64 #1
                              SMP Tue Mar 15 05:29:00 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Sat 19 Mar 2011 11:09:28 PM IST
Last Seen                     Sat 19 Mar 2011 11:09:28 PM IST
Local ID                      017ee887-2f5d-4830-a53b-6502f11797c9

Raw Audit Messages
type=AVC msg=audit(1300556368.562:22490): avc:  denied  { getattr } for  pid=10323 comm="sandboxX.sh" path="/usr/share/sandbox/start" dev=dm-3 ino=6169005 scontext=unconfined_u:unconfined_r:sandbox_web_t:s0:c817,c886 tcontext=system_u:object_r:sandbox_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1300556368.562:22490): arch=x86_64 syscall=stat success=no exit=EACCES a0=27d3c90 a1=7fffcba78800 a2=7fffcba78800 a3=8 items=0 ppid=10319 pid=10323 auid=500 uid=500 gid=501 euid=500 suid=500 fsuid=500 egid=501 sgid=501 fsgid=501 tty=(none) ses=1 comm=sandboxX.sh exe=/bin/bash subj=unconfined_u:unconfined_r:sandbox_web_t:s0:c817,c886 key=(null)

Hash: sandboxX.sh,sandbox_web_t,sandbox_exec_t,file,getattr

audit2allow

#============= sandbox_web_t ==============
allow sandbox_web_t sandbox_exec_t:file getattr;

audit2allow -R

#============= sandbox_web_t ==============
allow sandbox_web_t sandbox_exec_t:file getattr;

Comment 1 Amit Shah 2011-03-19 17:49:53 UTC
This is after the latest policy updates.  This happened when starting a sandboxed firefox.  Just the sandbox window pops up w/o a firefox instance in it.

Cmd line is:

 sandbox -X -t sandbox_web_t -H ~/.sandbox_ff_home firefox about:blank

One other denial happens with the new policy as well:

Mar 19 23:09:31 amit-x200 setroubleshoot: SELinux is preventing /bin/bash from execute access on the file start. For complete SELinux messages. run sealert -l 3a10c1f6-092d-4fcb-b432-00bd702600e2

Comment 2 Fedora Update System 2011-03-21 08:44:40 UTC
selinux-policy-3.9.7-37.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-37.fc14

Comment 3 Fedora Update System 2011-03-22 18:50:13 UTC
selinux-policy-3.9.7-37.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


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