Summary: | sys-apps/policycoreutils-2.6: NameError: global name 'audit' is not defined | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sven Vermeulen (RETIRED) <swift> |
Component: | SELinux | Assignee: | SE Linux Bugs <selinux> |
Status: | IN_PROGRESS --- | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 620006 | ||
Bug Blocks: |
Description
Sven Vermeulen (RETIRED)
2017-01-14 14:40:20 UTC
The seobject.py file seems to require audit.py, offered by sys-process/audit[python]. A few observations: (1.) sys-process/policycoreutils[audit] does not pull in sys-process/audit[python], something that probably needs to be fixed (2.) there is audit-related code in seobject.py that is wrapped in a try...except block. The audit code where this failure occurs is outside this wrapped code, it was perhaps added later on and did not reflect on the non-audit usage. If sys-process/audit is installed, with USE="python", then this problem (global name 'audit' is not defined) no longer occurs. The audit[python] dependency is now in policycoreutils-2.6-r1 (~arch). However, the other issue (as we need to support it with USE="-audit" as well) is not resolved yet. Is reported upstream, might only be fixed in later versions. |