Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 437888 - sys-apps/policycoreutils does not properly support python-3
Summary: sys-apps/policycoreutils does not properly support python-3
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard: selinux-utils
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-10 20:13 UTC by Sven Vermeulen (RETIRED)
Modified: 2012-11-17 16:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Vermeulen (RETIRED) gentoo-dev 2012-10-10 20:13:25 UTC
~# semanage login -a -s user_u user
libsemanage.dbase_llist_query: could not query record value
/usr/sbin/semanage: Error

No denials in AVC log

sys-apps/policycoreutils-2.1.13-r3

Reproducible: Always
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2012-10-10 20:16:52 UTC
Seems to be related to Python-3 support; using Python 2.7 it functions properly.
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2012-10-11 19:24:47 UTC
Another day of trying to figure this out.

It seems like the error comes when semanage -> seobject.py -> semanage.py -> _semanage.semanage_user_query

The _semanage stuff comes from the SWIG-generated _semanage.so. Printing out the arguments shows that the input initially (to semanage_user_key_create) is correct (like "user_u") and the key returned is always the same value (so it is not a regression from before where a double-free is invoked).

I'm most likely going to insert some debugging statements in the semanage_user_key_create, semanage_user_exists & semanage_user_query functions in libsemanage to see where things might be going wrong. But the whole use of a key/record approach inside libsemanage/libsepol doesn't make it easy to debug...
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2012-10-14 09:48:04 UTC
Not fixed in the sense that it now works, but I marked policycoreutils to only support Python 2.7 (until upstream supports it).
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2012-10-14 09:48:15 UTC
In main tree, ~arch'ed
Comment 5 Sven Vermeulen (RETIRED) gentoo-dev 2012-11-17 16:59:49 UTC
recent selinux userspace utilities are now stabilized