danwalsh ([info]danwalsh) wrote,
@ 2006-06-13 13:56:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
google-earth and SELinux
Google released a new product called google-earth, it has a couple of SELinux problems.

One they build the libcrypto incorrectly.  I tried to figure out how to report a bug to them, but to no avail.

At Red Hat we build the libcrypto library in openssl with the following qualifiers.

./Configure \
        --prefix=%{_prefix} --openssldir=%{_sysconfdir}/pki/tls ${sslflags} \
        zlib no-idea no-mdc2 no-rc5 no-ec no-ecdh no-ecdsa shared \
        --with-krb5-flavor=MIT --enginesdir=%{_libdir}/openssl/engines \
        -I%{_prefix}/kerberos/include -L%{_prefix}/kerberos/%{_lib} \
        ${sslarch}

# Add -Wa,--noexecstack here so that libcrypto's assembler modules will be
# marked as not requiring an executable stack.
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wa,--noexecstack"
make depend
make all build-shared

This eliminates the execstack flag on the shared library.  Obviously google does not do this.  If anyone
can figure out how to send in a bug report please do.

So this causes an execstack failure in Rawhide, or if you do not have the allow_execstack boolean set.

You  can execute

execstack -c /usr/local/google-earth/libcrypto.so.0.9.8

To clear the flag and eliminate the problem.

This tool seems to use realplayer also which seems to require execmem, if you have the allow_execmem flag
turned off you can execute 
chcon -t unconfined_execmem_exec_t /usr/local/RealPlayer/realplay.bin

So that it will be allowed to execmem.

I am updating policy to define this file context.

This allowed me to run google-earth with SELinux in enforcing mode.  (Of course the application hung my XServer after a few minutes,
but I don't believe this was a SELinux problem. YMMV)



(Post a new comment)


[info]kosai
2006-06-13 06:43 pm UTC (link)
Ryan Gordon (icculus@icculus.org) did the Linux porting, and would be able to take your bug.

(Reply to this)

/usr/local/RealPlayer/realplay.bin is the binary
(Anonymous)
2006-06-13 07:19 pm UTC (link)
Note that "/usr/local/RealPlayer/realplay" is just a shell script. Wouldn't you want to set "/usr/local/RealPlayer/realplay.bin" to "unconfined_execmem_exec_t" instead? Or are you counting on the type to be inherited at fork?

(Reply to this) (Thread)

Re: /usr/local/RealPlayer/realplay.bin is the binary
[info]danwalsh
2006-06-13 07:45 pm UTC (link)
Thanks I updated my post.

(Reply to this) (Parent)


[info]7wrc
2007-05-02 07:42 pm UTC (link)
Useful issue, thanks for that.

(Reply to this)

Your site is perfect!
(Anonymous)
2007-05-22 08:06 am UTC (link)
Hi, your site is very interesting and useful! I shall necessarily tell about him to the friends. Respect!
fresh ringtone (http://newringtone.atspace.com/index.html)[url=http://newringtone.atspace.com/index.html ]fresh ringtone[/url]
download ringtone (http://newringtone.atspace.com/download_ringtone.htm)[url=http://newringtone.atspace.com/download_ringtone.htm ]download ringtone[/url]
free ringtone (http://newringtone.atspace.com/ringtone.htm)[url=http://newringtone.atspace.com/ringtone.htm ]free ringtone[/url]
ringtones (http://newringtone.atspace.com/ringtones.htm)[url=http://newringtone.atspace.com/ringtones.htm ]ringtones[/url]
new ringtones (http://newringtone.atspace.com/ringtones_archive.htm)[url=http://newringtone.atspace.com/ringtones_archive.htm ]new ringtones[/url]
...oops these sites dosen't work at the moment!:(

(Reply to this)

Here i am
(Anonymous)
2007-07-23 03:56 pm UTC (link)
Hi to all, nice blog i just want to say hello
here!

(Reply to this) (Thread)

www.ringernation.com
(Anonymous)
2007-12-22 09:44 am UTC (link)
check this out

(Reply to this) (Parent)

(Reply from suspended user)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…