Summary: | "semanage fcontext" with python 3 fails in removing local contexts | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sven Vermeulen (RETIRED) <swift> |
Component: | Hardened | Assignee: | Sven Vermeulen (RETIRED) <swift> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | selinux |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sven Vermeulen (RETIRED)
2012-05-16 18:12:47 UTC
Any particular reason you didn't CC the python team on this? There might be someone there who could help... Seems like the problem is that the string, representing the file context (like "/swapfile") is freed even though it is still used. It might be because Python 2.7 doesn't free it as soon as Python 3.2 does, or perhaps it has nothing to do with Python itself but with the swig'ified code that has this change. In any case, strdup'ing the string seems to have fixed the issue (and still works in Python 2.7). Fix is now in hardened-dev overlay In main tree, ~arch'ed Stable in portage tree |