Bug 2055449

Summary: [abrt] policycoreutils-python-utils: main(): audit2allow:365:main:SystemError: <built-in function init> returned a result with an exception set
Product: [Fedora] Fedora Reporter: Brandon Amaro <omega13a>
Component: policycoreutilsAssignee: Petr Lautrbach <plautrba>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: dwalsh, grepl.miroslav, lvrabec, mmalik, plautrba, vmojzis
Target Milestone: ---Flags: plautrba: needinfo? (omega13a)
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/a2a726749d4ca5469be2c6b280c0ae8c0c04239c
Whiteboard: abrt_hash:171f4b049cc1350bf78c9f0c4051f5ec4aff9a71;VARIANT_ID=matecompiz;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-13 16:41:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Brandon Amaro 2022-02-17 01:02:51 UTC
Version-Release number of selected component:
policycoreutils-python-utils-3.3-1.fc35

Additional info:
reporter:       libreport-2.15.2
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/vte-spawn-01d17e4a-8c22-4e45-a979-19e340145d51.scope
cmdline:        /usr/bin/python3 -Es /usr/bin/audit2allow -M my-xreaderthumbna
crash_function: main
exception_type: SystemError
executable:     /usr/bin/audit2allow
interpreter:    python3-3.10.2-1.fc35.x86_64
kernel:         5.15.14-200.fc35.x86_64
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
audit2allow:365:main:SystemError: <built-in function init> returned a result with an exception set

ValueError: You must specify the -p option with the path to the policy file.


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/bin/audit2allow", line 381, in <module>
    app.main()
  File "/usr/bin/audit2allow", line 365, in main
    audit2why.init()
SystemError: <built-in function init> returned a result with an exception set

Local variables in innermost frame:
self: <__main__.AuditToPolicy object at 0x7f96a04cf310>

Comment 1 Brandon Amaro 2022-02-17 01:02:55 UTC
Created attachment 1861593 [details]
File: backtrace

Comment 2 Brandon Amaro 2022-02-17 01:02:56 UTC
Created attachment 1861594 [details]
File: cpuinfo

Comment 3 Brandon Amaro 2022-02-17 01:02:57 UTC
Created attachment 1861595 [details]
File: environ

Comment 4 Brandon Amaro 2022-02-17 01:02:58 UTC
Created attachment 1861596 [details]
File: mountinfo

Comment 5 Brandon Amaro 2022-02-17 01:03:00 UTC
Created attachment 1861597 [details]
File: namespaces

Comment 6 Brandon Amaro 2022-02-17 01:03:01 UTC
Created attachment 1861598 [details]
File: open_fds

Comment 7 Petr Lautrbach 2022-03-02 09:31:58 UTC
How did you get this backtrace?

It looks like SELinux is disabled in your system. In this case you need to run `audit2allow` with `-p <policyfile>` - the policyfile could be found in /etc/selinux/targeted/policy/...

Comment 8 Ben Cotton 2022-11-29 17:54:39 UTC
This message is a reminder that Fedora Linux 35 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '35'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 35 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 9 Ben Cotton 2022-12-13 16:41:37 UTC
Fedora Linux 35 entered end-of-life (EOL) status on 2022-12-13.

Fedora Linux 35 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.