| Summary: | SELinux is preventing /bin/bash from 'getattr' accesses on the file /usr/share/sandbox/start. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Amit Shah <amit.shah> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 14 | CC: | amturnip, dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:388e92fd31d8c9f9f33aecf8f20dc656b476df364121c9328caf9e14fc24da24 | ||
| Fixed In Version: | selinux-policy-3.9.7-37.fc14 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-03-22 18:51:42 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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 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 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. |
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;