Summary: | sys-apps/policycoreutils: semanage IndexError: list index out of range | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | montjoie <corentin.labbe> |
Component: | Hardened | Assignee: | SE Linux Bugs <selinux> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | corentin.labbe |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
montjoie
2009-03-11 14:12:08 UTC
same thing with sys-apps/policycoreutils-2.0.55 semanage Traceback (most recent call last): File "/usr/sbin/semanage", line 24, in <module> import seobject File "//usr/lib/python2.5/site-packages/seobject.py", line 34, in <module> gettext.install(PROGNAME, localedir="/usr/share/locale", unicode=1) File "/usr/lib/python2.5/gettext.py", line 493, in install t = translation(domain, localedir, fallback=True, codeset=codeset) File "/usr/lib/python2.5/gettext.py", line 478, in translation t = _translations.setdefault(key, class_(open(mofile, 'rb'))) File "/usr/lib/python2.5/gettext.py", line 180, in __init__ self._parse(fp) File "/usr/lib/python2.5/gettext.py", line 314, in _parse plural = v[1].split('plural=')[1] IndexError: list index out of range With this locale it's work: LANG= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= monjoie Do you still have this problem currently (I know, there's lots of time between the reporting date and now ;)? The selinux utilities have been updated as well as the SELinux profiles. I still have the problem and the "fix" to use POSIX locale still works xxx@xxxx:~/$ locale LANG=fr_FR.UTF-8 LC_CTYPE="fr_FR.UTF-8" LC_NUMERIC="fr_FR.UTF-8" LC_TIME="fr_FR.UTF-8" LC_COLLATE="fr_FR.UTF-8" LC_MONETARY="fr_FR.UTF-8" LC_MESSAGES="fr_FR.UTF-8" LC_PAPER="fr_FR.UTF-8" LC_NAME="fr_FR.UTF-8" LC_ADDRESS="fr_FR.UTF-8" LC_TELEPHONE="fr_FR.UTF-8" LC_MEASUREMENT="fr_FR.UTF-8" LC_IDENTIFICATION="fr_FR.UTF-8" LC_ALL= xxxx@xxx:~/$ /usr/sbin/semanage Traceback (most recent call last): File "/usr/sbin/semanage", line 24, in <module> import seobject File "/usr/lib/python2.6/site-packages/seobject.py", line 34, in <module> gettext.install(PROGNAME, localedir="/usr/share/locale", unicode=1) File "/usr/lib/python2.6/gettext.py", line 493, in install t = translation(domain, localedir, fallback=True, codeset=codeset) File "/usr/lib/python2.6/gettext.py", line 478, in translation t = _translations.setdefault(key, class_(open(mofile, 'rb'))) File "/usr/lib/python2.6/gettext.py", line 180, in __init__ self._parse(fp) File "/usr/lib/python2.6/gettext.py", line 314, in _parse plural = v[1].split('plural=')[1] IndexError: list index out of range Might be a long shot, but is gettext installed? yes gettext is installed With the latest selinux ebuild, the issue disappear. But now i got semanage Execution of 'eselect python show --python2' failed And got theses AVC #============= semanage_t ============== allow semanage_t self:fifo_file { read write }; allow semanage_t shell_exec_t:file execute; But it will be another bug report. Looks like the original issues was fixed with 2.20101213 policies. Please reopen if this particular issue resurfaces, and we'll address the avc in your next bug report. |