Package: policycoreutils
Version: 1.30-2
Severity: important

Hi,

after some changes in /etc/selinux/src, and then running "make load",
I see the following error:

Traceback (most recent call last):
  File "/usr/sbin/genhomedircon", line 28, in ?
    from semanage import *;
ImportError: No module named semanage

A quick check reveals that /usr/bin/python points to python2.3 on my
system (fresh sarge install, dist-upgraded to unstable). However,
python2.4-semanage obviously only contains the Python 2.4 version
of /usr/lib/python2.4/site-packages/semanage.py.
As /usr/sbin/genhomedircon starts with "#! /usr/bin/python" (which means
Python 2.3), it cannot find the semanage module.

I'm not sure what the correct fix is; maybe change /usr/sbin/genhomedircon
to start with "#! /usr/bin/python2.4"? I don't think you could/should
force SELinux users to switch to a specific default Python version (?)
Or provide a 2.3 _and_ a 2.4 version of the semanage Python lib?


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.18
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages policycoreutils depends on:
ii  libc6                         2.3.6-13   GNU C Library: Shared libraries
ii  libpam0g                      0.79-3.1   Pluggable Authentication Modules l
ii  libselinux1                   1.30-1     SELinux shared libraries
ii  libsemanage1                  1.6-1      shared libraries used by SELinux p
ii  libsepol1                     1.12-1     Security Enhanced Linux policy lib
ii  python2.4                     2.4.3-3    An interactive high-level object-o
ii  python2.4-selinux             1.30-1     Python2.4 bindings to SELinux shar
ii  python2.4-semanage            1.6-1      Python2.4 bindings  for SELinux po

policycoreutils recommends no packages.

-- no debconf information


HTH, Uwe.
-- 
Uwe Hermann 
http://www.hermann-uwe.de
http://www.it-services-uh.de  | http://www.crazy-hacks.org 
http://www.holsham-traders.de | http://www.unmaintained-free-software.org

Attachment: signature.asc
Description: Digital signature

Reply via email to