Closed
Bug 953478
Opened 12 years ago
Closed 12 years ago
Error loading purplexpcom with SELinux
Categories
(Chat Core :: General, defect, P5)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: bugzilla, Assigned: florian)
Details
*** Original post on bio 27 by Vojtech Horky <vojta.horky AT seznam.cz> at 2007-10-26 12:07:00 UTC ***
[I am not sure whether this bug shouldn't rather be in the libpurple section]
When launching ./instantbird.sh, message "TypeError: Components.classes['@instantbird.org/purple/core;1'] has no properties" appears, then the application loads okay, but when trying to add an account, the protocol list is empty.
I have Fedora 7 and the problem might be (not sure) somehow related to SELinux, because before that, warning about "text relocation" appeared.
However, I overwrite the denial by granting permissions: executed chcon -t textrel_shlib_t on mentioned files (libpurpleloader.so and libpurplexpcom.so) but the problem persisted.
I can attach full SELinux log if needed.
| Assignee | ||
Comment 1•12 years ago
|
||
*** Original post on bio 27 at 2007-10-26 18:18:04 UTC ***
(In reply to comment #0)
> When launching ./instantbird.sh, message "TypeError:
> Components.classes['@instantbird.org/purple/core;1'] has no properties"
> appears
This message appears when libpurplexpcom.so could not be loaded. Bug 953454 (bio 3) is about replacing this message by a human readable error message.
> I have Fedora 7 and the problem might be (not sure) somehow related to SELinux,
> because before that, warning about "text relocation" appeared.
> However, I overwrite the denial by granting permissions: executed chcon -t
> textrel_shlib_t on mentioned files (libpurpleloader.so and libpurplexpcom.so)
> but the problem persisted.
>
> I can attach full SELinux log if needed.
>
This problem seems like a missing dependency on one of the libraries.
A log may help.
Component: Account manager → General
Product: Instantbird → Chat Core
Version: 0.1 → trunk
| Reporter | ||
Comment 2•12 years ago
|
||
*** Original post on bio 27 by Vojtech Horky <vojta.horky AT seznam.cz> at 2007-10-26 20:07:23 UTC ***
(In reply to comment #1)
> (In reply to comment #0)
> > When launching ./instantbird.sh, message "TypeError:
> > Components.classes['@instantbird.org/purple/core;1'] has no properties"
> > appears
>
> This message appears when libpurplexpcom.so could not be loaded. Bug 953454 (bio 3) is about
> replacing this message by a human readable error message.
>
> > I have Fedora 7 and the problem might be (not sure) somehow related to SELinux,
> > because before that, warning about "text relocation" appeared.
> > However, I overwrite the denial by granting permissions: executed chcon -t
> > textrel_shlib_t on mentioned files (libpurpleloader.so and libpurplexpcom.so)
> > but the problem persisted.
> >
> > I can attach full SELinux log if needed.
> >
>
> This problem seems like a missing dependency on one of the libraries.
I have double-checked and I have the libraries listed on download page. (Maybe only libraries within the package could not be found or loaded?)
> A log may help.
This is SELinux log:
Summary
SELinux is preventing /home/vojta/instantbird-0.1/xulrunner/xulrunner-bin
from loading /home/vojta/instantbird-0.1/components/libpurpleloader.so which
requires text relocation.
Detailed Description
The /home/vojta/instantbird-0.1/xulrunner/xulrunner-bin application
attempted to load /home/vojta/instantbird-0.1/components/libpurpleloader.so
which requires text relocation. This is a potential security problem. Most
libraries do not need this permission. Libraries are sometimes coded
incorrectly and request this permission. The
http://people.redhat.com/drepper/selinux-mem.html web page explains how to
remove this requirement. You can configure SELinux temporarily to allow
/home/vojta/instantbird-0.1/components/libpurpleloader.so to use relocation
as a workaround, until the library is fixed. Please file a
http://bugzilla.redhat.com/bugzilla/enter_bug.cgi against this package.
Allowing Access
If you trust /home/vojta/instantbird-0.1/components/libpurpleloader.so to
run correctly, you can change the file context to textrel_shlib_t. "chcon -t
textrel_shlib_t /home/vojta/instantbird-0.1/components/libpurpleloader.so"
The following command will allow this access:
chcon -t textrel_shlib_t /home/vojta/instantbird-0.1/components/libpurpleloader.so
Additional Information
Source Context user_u:system_r:unconfined_t
Target Context user_u:object_r:user_home_t
Target Objects /home/vojta/instantbird-0.1/components/libpurplelo
ader.so [ file ]
Affected RPM Packages
Policy RPM selinux-policy-2.6.4-48.fc7
Selinux Enabled True
Policy Type targeted
MLS Enabled True
Enforcing Mode Enforcing
Plugin Name plugins.allow_execmod
Host Name localhost.localdomain
Platform Linux localhost.localdomain 2.6.22.9-91.fc7 #1 SMP
Thu Sep 27 20:47:39 EDT 2007 x86_64 x86_64
Alert Count 4
First Seen Pá 26. říjen 2007, 21:59:13 CEST
Last Seen Pá 26. říjen 2007, 21:59:13 CEST
Local ID 5287a772-e0b2-4e2b-9e37-4c38ac56dcc2
Line Numbers
Raw Audit Messages
avc: denied { execmod } for comm="xulrunner-bin" dev=sda7 egid=501 euid=500
exe="/home/vojta/instantbird-0.1/xulrunner/xulrunner-bin" exit=-13 fsgid=501
fsuid=500 gid=501 items=0 name="libpurpleloader.so"
path="/home/vojta/instantbird-0.1/components/libpurpleloader.so" pid=24001
scontext=user_u:system_r:unconfined_t:s0 sgid=501
subj=user_u:system_r:unconfined_t:s0 suid=500 tclass=file
tcontext=user_u:object_r:user_home_t:s0 tty=pts1 uid=500
| Assignee | ||
Updated•12 years ago
|
Summary: Protocol list is empty → Error loading purplexpcom with SELinux
Version: trunk → 0.1
| Reporter | ||
Comment 3•12 years ago
|
||
*** Original post on bio 27 by Vojtech Horky <vojta.horky AT seznam.cz> at 2007-11-05 23:29:18 UTC ***
(In reply to comment #1)
> (In reply to comment #0)
> > When launching ./instantbird.sh, message "TypeError:
> > Components.classes['@instantbird.org/purple/core;1'] has no properties"
> > appears
> ...
> This problem seems like a missing dependency on one of the libraries.
Another guess, sorry about replying so late.
Maybe the problem is that I use 64bit versions of these libraries (and SELinux is just a side-effect after some conversion 32->64?).
I am not sure whether this might be the _real_ cause of the problem, but I tried to compile from sources and everything went smooth until making in xpcom directory where compiler stopped on messages similar to
src/purpleCoreService.cpp:330: error:
cast from ‘PurpleBuddy*' to ‘PRUint32' loses precision
which seems to me as conflict of 32bit and 64bit.
I can post logs from compilation and version info if needed.
| Assignee | ||
Comment 4•12 years ago
|
||
*** Original post on bio 27 at 2007-11-05 23:38:53 UTC ***
(In reply to comment #3)
> src/purpleCoreService.cpp:330: error:
> cast from ‘PurpleBuddy*' to ‘PRUint32' loses precision
> which seems to me as conflict of 32bit and 64bit.
>
Oh, I'm casting pointers to 32bit ints. This is horrible :-(.
This code needs to be changed before we can make a 64bits version of Instantbird.
I'm not sure if this is the same issue as in the previous comments or if we have 2 different bugs here.
64bits compatibility definitely needs to get fixed for version 0.2.
| Reporter | ||
Comment 5•12 years ago
|
||
*** Original post on bio 27 by Michel Aboudib <micho.mad AT gmail.com> at 2008-10-09 20:16:10 UTC ***
>
> 64bits compatibility definitely needs to get fixed for version 0.2.
>
Hi, so version 0.1.2 doesn't work on 64bit systems? at all. I have a multilib system on amd64. Is there a way to make it work? I get this message when running instantbird:
"@instantbird.org/purple/core;1" undefined
| Assignee | ||
Comment 6•12 years ago
|
||
*** Original post on bio 27 at 2008-10-09 21:08:56 UTC ***
(In reply to comment #5)
> Hi, so version 0.1.2 doesn't work on 64bit systems? at all. I have a multilib
> system on amd64. Is there a way to make it work? I get this message when
> running instantbird:
>
> "@instantbird.org/purple/core;1" undefined
>
It works on 64 bit systems (actually, my computer is running Ubuntu 64bits).
You probably have this error message because a 32bit library is missing on your system. Which distribution do you use?
| Reporter | ||
Comment 7•12 years ago
|
||
*** Original post on bio 27 by Michel Aboudib <micho.mad AT gmail.com> at 2008-10-10 01:29:58 UTC ***
(In reply to comment #6)
> (In reply to comment #5)
> > Hi, so version 0.1.2 doesn't work on 64bit systems? at all. I have a multilib
> > system on amd64. Is there a way to make it work? I get this message when
> > running instantbird:
> >
> > "@instantbird.org/purple/core;1" undefined
> >
>
> It works on 64 bit systems (actually, my computer is running Ubuntu 64bits).
> You probably have this error message because a 32bit library is missing on your
> system. Which distribution do you use?
>
I'm using Gentoo, and a 2.6 kernel.
Comment 8•12 years ago
|
||
*** Original post on bio 27 at 2010-11-03 12:37:34 UTC ***
The last comments on this bug are over two years old now. Does this problem still occur with the latest release and the latest nightlies?
| Reporter | ||
Comment 9•12 years ago
|
||
*** Original post on bio 27 by Hicham HAOUARI <hicham.haouari AT gmail.com> at 2010-11-19 02:02:39 UTC ***
I can't reproduce this issue on current Fedora 14 with 0.2, or rawhide ( development branch ) with 0.3a1pre. So I think this bug can be safely closed.
| Assignee | ||
Comment 10•12 years ago
|
||
*** Original post on bio 27 at 2011-03-09 20:34:00 UTC ***
Mass-change: Reassigning to nobody all the bugs in the NEW or UNCONFIRMED status where I'm the assignee because I used to be the default assignee of the component.
Comment 11•12 years ago
|
||
*** Original post on bio 27 at 2011-07-08 19:51:24 UTC ***
Closing this based on Comment #9, if there's still an issue using Instantbird 1.0, please open a new bug! Thanks. (Note that there are 64-bit builds available on the FTP server, although they are unsupported.)
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•