Bug 1251539 - [abrt] policycoreutils-python-utils: output.py:134:sort_node:TypeError: must use keyword argument for key function
[abrt] policycoreutils-python-utils: output.py:134:sort_node:TypeError: must ...
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: policycoreutils (Show other bugs)
23
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Petr Lautrbach
Fedora Extras Quality Assurance
https://retrace.fedoraproject.org/faf...
abrt_hash:fd1d8ff053c53b42db9b4345126...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-07 11:45 EDT by satellitgo
Modified: 2015-08-10 04:28 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-10 04:28:13 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
File: backtrace (1.31 KB, text/plain)
2015-08-07 11:45 EDT, satellitgo
no flags Details
File: environ (3.15 KB, text/plain)
2015-08-07 11:45 EDT, satellitgo
no flags Details

  None (edit)
Description satellitgo 2015-08-07 11:45:49 EDT
Version-Release number of selected component:
policycoreutils-python-utils-2.4-7.fc23

Additional info:
reporter:       libreport-2.6.2
cmdline:        /usr/bin/python3 -Es /usr/bin/audit2allow -M mypol
executable:     /usr/bin/audit2allow
kernel:         4.2.0-0.rc4.git1.1.fc23.x86_64
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
output.py:134:sort_node:TypeError: must use keyword argument for key function

Traceback (most recent call last):
  File "/usr/bin/audit2allow", line 360, in <module>
    app.main()
  File "/usr/bin/audit2allow", line 348, in main
    self.__output()
  File "/usr/bin/audit2allow", line 326, in __output
    self.__output_modulepackage(writer, g)
  File "/usr/bin/audit2allow", line 221, in __output_modulepackage
    writer.write(generator.get_module(), fd)
  File "/usr/lib64/python3.4/site-packages/sepolgen/output.py", line 48, in write
    sort_filter(self.module)
  File "/usr/lib64/python3.4/site-packages/sepolgen/output.py", line 175, in sort_filter
    sort_node(node)
  File "/usr/lib64/python3.4/site-packages/sepolgen/output.py", line 134, in sort_node
    rules.sort(rule_cmp)
TypeError: must use keyword argument for key function

Local variables in innermost frame:
node: <Module()>
rules: [<AVRule(allow systemd_logind_t efivarfs_t:file read;)>]
require: <Require(require {
	type systemd_logind_t;
	type efivarfs_t;
	class file read;
})>
c: [<ModuleDeclaration(module mypol 1.0;)>, <sepolgen.refpolicy.Comment object at 0x7fc2542ec6a0>, <Require(require {
	type systemd_logind_t;
	type efivarfs_t;
	class file read;
})>, <sepolgen.refpolicy.Comment object at 0x7fc2542ec668>]
mod: <ModuleDeclaration(module mypol 1.0;)>
Comment 1 satellitgo 2015-08-07 11:45:51 EDT
Created attachment 1060420 [details]
File: backtrace
Comment 2 satellitgo 2015-08-07 11:45:52 EDT
Created attachment 1060421 [details]
File: environ
Comment 3 Petr Lautrbach 2015-08-10 04:28:13 EDT
It should be already fixed by https://admin.fedoraproject.org/updates/FEDORA-2015-13026/policycoreutils-2.4-8.fc23 . If the update doesn't work for you, feel free to reopen this bug. Thanks.

Note You need to log in before you can comment on or make changes to this bug.