On Sun, Sep 13, 2009 at 09:53:49AM -0700, Antonio Olivares wrote: This is actually a bug in firefox i believe. However no access is actually denied. It was just reporting that normally it would have been denied. The solution that is suggested by setroubleshoot would have worked if it was needed (it isnt because the action was allowed in this case) So the issue is known (waiting for a fix from mozilla) In the meantime the access is allowed by SELinux but logged. if you want to get rid of the "warning" you could temporarily label chcon -t execmem_exec_t /usr/lib/firefox-3.5.3/firefox Just have to wait for a fix for this known issue`:wq > https://bugzilla.redhat.com/show_bug.cgi?id=522917 > > > Summary: > > SELinux is preventing /usr/lib/firefox-3.5.3/firefox from changing a writable > memory segment executable. > > Detailed Description: > > [firefox has a permissive type (unconfined_t). This access was not denied.] > > The firefox application attempted to change the access protection of memory > (e.g., allocated using malloc). This is a potential security problem. > Applications should not be doing this. Applications are sometimes coded > incorrectly and request this permission. The SELinux Memory Protection Tests > (http://people.redhat.com/drepper/selinux-mem.html) web page explains how to > remove this requirement. If firefox does not work and you need it to work, you > can configure SELinux temporarily to allow this access until the application is > fixed. Please file a bug report against this package. > > Allowing Access: > > If you trust firefox to run correctly, you can change the context of the > executable to execmem_exec_t. "chcon -t execmem_exec_t > '/usr/lib/firefox-3.5.3/firefox'". You must also change the default file context > files on the system in order to preserve them even on a full relabel. "semanage > fcontext -a -t execmem_exec_t '/usr/lib/firefox-3.5.3/firefox'" > > Fix Command: > > chcon -t execmem_exec_t '/usr/lib/firefox-3.5.3/firefox' > > 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 None [ process ] > Source firefox > Source Path /usr/lib/firefox-3.5.3/firefox > Port <Unknown> > Host (removed) > Source RPM Packages firefox-3.5.3-1.fc12 > Target RPM Packages > Policy RPM selinux-policy-3.6.31-3.fc12 > Selinux Enabled True > Policy Type targeted > MLS Enabled True > Enforcing Mode Enforcing > Plugin Name allow_execmem > Host Name (removed) > Platform Linux localhost.localdomain 2.6.31-2.fc12.i686 #1 > SMP Thu Sep 10 00:41:03 EDT 2009 i686 i686 > Alert Count 1 > First Seen Sun 13 Sep 2009 11:47:14 AM CDT > Last Seen Sun 13 Sep 2009 11:47:14 AM CDT > Local ID 1c10f973-7768-4807-9482-d77739f533a2 > Line Numbers > > Raw Audit Messages > > node=localhost.localdomain type=AVC msg=audit(1252860434.198:37): avc: denied { execmem } for pid=1910 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 > > node=localhost.localdomain type=SYSCALL msg=audit(1252860434.198:37): arch=40000003 syscall=192 success=yes exit=1601536 a0=0 a1=1000 a2=7 a3=22 items=0 ppid=1898 pid=1910 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="firefox" exe="/usr/lib/firefox-3.5.3/firefox" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null) > > > Regards, > > Antonio > > > > > -- > fedora-selinux-list mailing list > fedora-selinux-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/fedora-selinux-list
Attachment:
pgpgrxTqmGd9J.pgp
Description: PGP signature
-- fedora-selinux-list mailing list fedora-selinux-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-selinux-list