* ImportError: /usr/lib64/libvirt.so.0: undefined symbol: selinux_virtual_domain_context_path
@ 2012-09-15 13:10 Lentes, Bernd
2012-09-15 21:23 ` Eric Paris
2012-09-17 13:38 ` Daniel J Walsh
0 siblings, 2 replies; 5+ messages in thread
From: Lentes, Bernd @ 2012-09-15 13:10 UTC (permalink / raw)
To: selinux@tycho.nsa.gov
Hi,
i don't know if this is the right place for my question, but i hope. I have a problem which is in my belief related to SELinux.
I try to install the application "virt-manager", which is intendend to be for the control of virtuell domains in KVM.
My box is SLES 11 SP1, 64bit, kernel 2.6.32.
But starting the application throws an error:
pc56846:~ # Traceback (most recent call last):
File "/usr/share/virt-manager/virt-manager.py", line 26, in <module>
import libvirt
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 25, in <module>
raise lib_e
ImportError: /usr/lib64/libvirt.so.0: undefined symbol: selinux_virtual_domain_context_path
[1]+ Exit 1 virt-manager
pc56846:~ #
What I found out is that the package "linux-utils", beginning with version 2.1.9, include two manpages having names related to my error:
/usr/share/man/man5/virtual_domain_context.5.gz
/usr/share/man/man5/virtual_image_context.5.gz
I tried to install linux-utils, but didn't find the right version for my box. So I installed the mentioned version, breaking some dependendcies. That didn't help. I don't know if this is not the desired package or if the error is related to the missing dependencies.
Any ideas ?
Bernd
--
Bernd Lentes
Systemadministration
Institut für Entwicklungsgenetik
HelmholtzZentrum münchen
bernd.lentes@helmholtz-muenchen.de
phone: +49 89 3187 1241
fax: +49 89 3187 3826
http://www.helmholtz-muenchen.de/idg
Wir sollten nicht den Tod fürchten, sondern das schlechte Leben
Helmholtz Zentrum München
Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH)
Ingolstädter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir´in Bärbel Brumme-Bothe
Geschäftsführer: Prof. Dr. Günther Wess und Dr. Nikolaus Blum
Registergericht: Amtsgericht München HRB 6466
USt-IdNr: DE 129521671
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ImportError: /usr/lib64/libvirt.so.0: undefined symbol: selinux_virtual_domain_context_path
2012-09-15 13:10 ImportError: /usr/lib64/libvirt.so.0: undefined symbol: selinux_virtual_domain_context_path Lentes, Bernd
@ 2012-09-15 21:23 ` Eric Paris
2012-09-16 11:45 ` Lentes, Bernd
2012-09-17 13:38 ` Daniel J Walsh
1 sibling, 1 reply; 5+ messages in thread
From: Eric Paris @ 2012-09-15 21:23 UTC (permalink / raw)
To: Lentes, Bernd; +Cc: selinux@tycho.nsa.gov
selinux_virtual_domain_context_path comes from libselinux. I have no
idea if the version of libselinux in SLES has the required export. If
SLES doesn't have a new enough version of libselinux, then it's a
libvirt bug that they built with SELinux support on your distro.
So either install libselinux, or file a bug against libvirt if you can't....
On Sat, Sep 15, 2012 at 9:10 AM, Lentes, Bernd
<bernd.lentes@helmholtz-muenchen.de> wrote:
> Hi,
>
> i don't know if this is the right place for my question, but i hope. I have a problem which is in my belief related to SELinux.
> I try to install the application "virt-manager", which is intendend to be for the control of virtuell domains in KVM.
> My box is SLES 11 SP1, 64bit, kernel 2.6.32.
> But starting the application throws an error:
>
> pc56846:~ # Traceback (most recent call last):
> File "/usr/share/virt-manager/virt-manager.py", line 26, in <module>
> import libvirt
> File "/usr/lib64/python2.6/site-packages/libvirt.py", line 25, in <module>
> raise lib_e
> ImportError: /usr/lib64/libvirt.so.0: undefined symbol: selinux_virtual_domain_context_path
>
> [1]+ Exit 1 virt-manager
> pc56846:~ #
>
> What I found out is that the package "linux-utils", beginning with version 2.1.9, include two manpages having names related to my error:
> /usr/share/man/man5/virtual_domain_context.5.gz
> /usr/share/man/man5/virtual_image_context.5.gz
>
> I tried to install linux-utils, but didn't find the right version for my box. So I installed the mentioned version, breaking some dependendcies. That didn't help. I don't know if this is not the desired package or if the error is related to the missing dependencies.
>
> Any ideas ?
>
>
> Bernd
>
> --
> Bernd Lentes
>
> Systemadministration
> Institut für Entwicklungsgenetik
> HelmholtzZentrum münchen
> bernd.lentes@helmholtz-muenchen.de
> phone: +49 89 3187 1241
> fax: +49 89 3187 3826
> http://www.helmholtz-muenchen.de/idg
>
> Wir sollten nicht den Tod fürchten, sondern das schlechte Leben
>
>
> Helmholtz Zentrum München
> Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH)
> Ingolstädter Landstr. 1
> 85764 Neuherberg
> www.helmholtz-muenchen.de
> Aufsichtsratsvorsitzende: MinDir´in Bärbel Brumme-Bothe
> Geschäftsführer: Prof. Dr. Günther Wess und Dr. Nikolaus Blum
> Registergericht: Amtsgericht München HRB 6466
> USt-IdNr: DE 129521671
>
>
> --
> This message was distributed to subscribers of the selinux mailing list.
> If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
> the words "unsubscribe selinux" without quotes as the message.
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: ImportError: /usr/lib64/libvirt.so.0: undefined symbol: selinux_virtual_domain_context_path
2012-09-15 21:23 ` Eric Paris
@ 2012-09-16 11:45 ` Lentes, Bernd
2012-09-16 14:05 ` Eric Paris
0 siblings, 1 reply; 5+ messages in thread
From: Lentes, Bernd @ 2012-09-16 11:45 UTC (permalink / raw)
To: selinux@tycho.nsa.gov
Eric wrote:
> -----Original Message-----
> From: owner-selinux@tycho.nsa.gov [mailto:owner-selinux@tycho.nsa.gov]
> On Behalf Of Eric Paris
> Sent: Saturday, September 15, 2012 11:24 PM
> To: Lentes, Bernd
> Cc: selinux@tycho.nsa.gov
> Subject: Re: ImportError: /usr/lib64/libvirt.so.0: undefined symbol:
> selinux_virtual_domain_context_path
>
> selinux_virtual_domain_context_path comes from libselinux. I have no
> idea if the version of libselinux in SLES has the required export. If
> SLES doesn't have a new enough version of libselinux, then it's a
> libvirt bug that they built with SELinux support on your distro.
>
> So either install libselinux, or file a bug against libvirt if you can't....
>
[]
Hi Eric,
thanks for your answer. How do i know if a version of libselinux hast the required export ?
I installed linux-utils 2.1.9, which include a manpage for "virtual domain context" (/usr/share/man/man5/virtual_domain_context.5.gz). Is that a hint that this version has the required export ?
Do I need libselinux or libselinux-utils ? I have already installed libselinux1. Is this the same as libselinux ?
Thanks for helping.
Bernd
Helmholtz Zentrum München
Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH)
Ingolstädter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir´in Bärbel Brumme-Bothe
Geschäftsführer: Prof. Dr. Günther Wess und Dr. Nikolaus Blum
Registergericht: Amtsgericht München HRB 6466
USt-IdNr: DE 129521671
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ImportError: /usr/lib64/libvirt.so.0: undefined symbol: selinux_virtual_domain_context_path
2012-09-16 11:45 ` Lentes, Bernd
@ 2012-09-16 14:05 ` Eric Paris
0 siblings, 0 replies; 5+ messages in thread
From: Eric Paris @ 2012-09-16 14:05 UTC (permalink / raw)
To: Lentes, Bernd; +Cc: selinux@tycho.nsa.gov
On Sun, Sep 16, 2012 at 7:45 AM, Lentes, Bernd
<bernd.lentes@helmholtz-muenchen.de> wrote:
> thanks for your answer. How do i know if a version of libselinux hast the required export ?
> I installed linux-utils 2.1.9, which include a manpage for "virtual domain context" (/usr/share/man/man5/virtual_domain_context.5.gz). Is that a hint that this version has the required export ?
> Do I need libselinux or libselinux-utils ? I have already installed libselinux1. Is this the same as libselinux ?
Lets start by saying again, I don't know anything about how SUSE
packages stuff. But, libselinux is going to be the package that
provides /usr/lib(64)/libselinux.so.1. You should be able to run
something like:
$ nm /usr/lib64/libselinux.so.1 -D | grep selinux_virtual_domain_context_path
If you get output, then your library is new enough. My output looked like:
00000038cbe16fe0 T selinux_virtual_domain_context_path
I don't know why the man page is a part of linux-utils. That's not
how other distros ship it, but I can promise, "linux-utils" is a red
herring. The problem is that the version of libvirt you are using
requires a version of libselinux which includes
selinux_virtual_domain_context_path. Getting a new enough version of
libselinux installed or getting a version of libvirt which doesn't
require SELinux is going to be how you get this fixed. It might be
best to bring your problem to your SUSE technical support
representative, since I don't anything about how they package things
and I don't hear from a lot of SELinux users on SLES on list...
-Eric
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ImportError: /usr/lib64/libvirt.so.0: undefined symbol: selinux_virtual_domain_context_path
2012-09-15 13:10 ImportError: /usr/lib64/libvirt.so.0: undefined symbol: selinux_virtual_domain_context_path Lentes, Bernd
2012-09-15 21:23 ` Eric Paris
@ 2012-09-17 13:38 ` Daniel J Walsh
1 sibling, 0 replies; 5+ messages in thread
From: Daniel J Walsh @ 2012-09-17 13:38 UTC (permalink / raw)
To: Lentes, Bernd; +Cc: selinux@tycho.nsa.gov
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 09/15/2012 09:10 AM, Lentes, Bernd wrote:
> Hi,
>
> i don't know if this is the right place for my question, but i hope. I have
> a problem which is in my belief related to SELinux. I try to install the
> application "virt-manager", which is intendend to be for the control of
> virtuell domains in KVM. My box is SLES 11 SP1, 64bit, kernel 2.6.32. But
> starting the application throws an error:
>
> pc56846:~ # Traceback (most recent call last): File
> "/usr/share/virt-manager/virt-manager.py", line 26, in <module> import
> libvirt File "/usr/lib64/python2.6/site-packages/libvirt.py", line 25, in
> <module> raise lib_e ImportError: /usr/lib64/libvirt.so.0: undefined
> symbol: selinux_virtual_domain_context_path
>
> [1]+ Exit 1 virt-manager pc56846:~ #
>
> What I found out is that the package "linux-utils", beginning with version
> 2.1.9, include two manpages having names related to my error:
> /usr/share/man/man5/virtual_domain_context.5.gz
> /usr/share/man/man5/virtual_image_context.5.gz
>
> I tried to install linux-utils, but didn't find the right version for my
> box. So I installed the mentioned version, breaking some dependendcies.
> That didn't help. I don't know if this is not the desired package or if the
> error is related to the missing dependencies.
>
> Any ideas ?
>
>
> Bernd
>
> -- Bernd Lentes
>
> Systemadministration Institut für Entwicklungsgenetik HelmholtzZentrum
> münchen bernd.lentes@helmholtz-muenchen.de phone: +49 89 3187 1241 fax:
> +49 89 3187 3826 http://www.helmholtz-muenchen.de/idg
>
> Wir sollten nicht den Tod fürchten, sondern das schlechte Leben
>
>
> Helmholtz Zentrum München Deutsches Forschungszentrum für Gesundheit und
> Umwelt (GmbH) Ingolstädter Landstr. 1 85764 Neuherberg
> www.helmholtz-muenchen.de Aufsichtsratsvorsitzende: MinDir´in Bärbel
> Brumme-Bothe Geschäftsführer: Prof. Dr. Günther Wess und Dr. Nikolaus Blum
> Registergericht: Amtsgericht München HRB 6466 USt-IdNr: DE 129521671
>
>
> -- This message was distributed to subscribers of the selinux mailing
> list. If you no longer wish to subscribe, send mail to
> majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes
> as the message.
>
>
Looks like libvirt expects to be linked against libselinux. If you built
without SELINUX support then their is a bug in the ifdef code of libvirt that
should not be making this call.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iEYEARECAAYFAlBXJ88ACgkQrlYvE4MpobM6LQCglDCNsgzx9dToivR3Xy4D0LfA
3o8AoOiQgW+n7T0/pqLQL3rmvJhoRYOs
=xFmD
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-09-17 13:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-15 13:10 ImportError: /usr/lib64/libvirt.so.0: undefined symbol: selinux_virtual_domain_context_path Lentes, Bernd
2012-09-15 21:23 ` Eric Paris
2012-09-16 11:45 ` Lentes, Bernd
2012-09-16 14:05 ` Eric Paris
2012-09-17 13:38 ` Daniel J Walsh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.