Bug 665039
| Summary: | SELinux is preventing /usr/lib64/firefox-3.6/firefox from using the 'execstack' accesses on a process. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Joe Buckley <jmj.buckley> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 14 | CC: | acarbs12, adrigiga, aniolwda, anurag, artemio.silva, bean_curd098, bobpoljakov, chris.partezana, dwalsh, eor2004, gpvprasad, ibm58, icj, jaguar07, k1mk, luca.botti, mgrepl, michkin_a, musonic, pcsnow, Robert-Martin, rtekel, vacherin, webmaster, wikouk |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:24a5eb56b6aa00c202b0decd82238f42c883b545d092b85820e3620b2ec6de2a | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-01-10 09:50:32 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: | |||
Suggested commands also fail grep /usr/lib/firefox-3.6/firefox /var/log/audit/audit.log | audit2allow -M mypol compilation failed: mypol.te:6:ERROR 'syntax error' at token '' on line 6: /usr/bin/checkmodule: error(s) encountered while parsing configuration /usr/bin/checkmodule: loading policy configuration from mypol.te (In reply to comment #1) > Suggested commands also fail > > grep /usr/lib/firefox-3.6/firefox /var/log/audit/audit.log | audit2allow -M > mypol > compilation failed: > mypol.te:6:ERROR 'syntax error' at token '' on line 6: > > > /usr/bin/checkmodule: error(s) encountered while parsing configuration > /usr/bin/checkmodule: loading policy configuration from mypol.te This bug is fixed in a new version of setroubleshoot-plugin package. It will tell you # grep firefox /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp *** This bug has been marked as a duplicate of bug 652297 *** |
SELinux is preventing /usr/lib64/firefox-3.6/firefox from using the 'execstack' accesses on a process. ***** Plugin allow_execstack (53.1 confidence) suggests ******************** If you do not think /usr/lib64/firefox-3.6/firefox should need to map stack memory that is both writable and executable. Then you need to report a bug. This is a potentially dangerous access. Do contact your security administrator and report this issue. ***** Plugin catchall_boolean (42.6 confidence) suggests ******************* If you want to allow unconfined executables to make their stack executable. This should never, ever be necessary. Probably indicates a badly coded executable, but could indicate an attack. This executable should be reported in bugzilla Then you must tell SELinux about this by enabling the 'allow_execstack' boolean. Do setsebool -P allow_execstack 1 ***** Plugin catchall (5.76 confidence) suggests *************************** If you believe that firefox should be allowed execstack access on processes labeled unconfined_t 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 /usr/lib64/firefox-3.6/firefox /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1 023 Target Context unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1 023 Target Objects Unknown [ process ] Source firefox Source Path /usr/lib64/firefox-3.6/firefox Port <Unknown> Host (removed) Source RPM Packages firefox-3.6.13-1.fc14 Target RPM Packages Policy RPM selinux-policy-3.9.7-18.fc14 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.35.9-64.fc14.x86_64 #1 SMP Fri Dec 3 12:19:41 UTC 2010 x86_64 x86_64 Alert Count 3 First Seen Wed 22 Dec 2010 08:58:28 AM EST Last Seen Wed 22 Dec 2010 08:58:28 AM EST Local ID bf21c0be-fff9-4b3f-80cd-528e466726c0 Raw Audit Messages type=AVC msg=audit(1293026308.745:54): avc: denied { execstack } for pid=3169 comm="firefox" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=process firefox,unconfined_t,unconfined_t,process,execstack type=SYSCALL msg=audit(1293026308.745:54): arch=x86_64 syscall=mprotect success=no exit=EACCES a0=7fff50959000 a1=1000 a2=1000007 a3=3760021000 items=0 ppid=3155 pid=3169 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=2 comm=firefox exe=/usr/lib64/firefox-3.6/firefox subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null) firefox,unconfined_t,unconfined_t,process,execstack #============= unconfined_t ============== #!!!! This avc can be allowed using the boolean 'allow_execstack' allow unconfined_t self:process execstack;