Bug 1251539 - [abrt] policycoreutils-python-utils: output.py:134:sort_node:TypeError: must use keyword argument for key function
Summary: [abrt] policycoreutils-python-utils: output.py:134:sort_node:TypeError: must ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: 23
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Lautrbach
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:fd1d8ff053c53b42db9b4345126...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-07 15:45 UTC by satellitgo
Modified: 2015-08-10 08:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-10 08:28:13 UTC
Type: ---
Embargoed:


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

Description satellitgo 2015-08-07 15:45:49 UTC
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 15:45:51 UTC
Created attachment 1060420 [details]
File: backtrace

Comment 2 satellitgo 2015-08-07 15:45:52 UTC
Created attachment 1060421 [details]
File: environ

Comment 3 Petr Lautrbach 2015-08-10 08:28:13 UTC
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.