Public bug reported:

Test Case
1. Run usr/bin/sepolicy gui

Result:
This crash:
Traceback (most recent call last):
  File "/usr/sbin/semanage", line 28, in <module>
    import seobject
  File "/usr/lib/python3/dist-packages/seobject.py", line 1038, in <module>
    class portRecords(semanageRecords):
  File "/usr/lib/python3/dist-packages/seobject.py", line 1040, in portRecords
    valid_types = list(list(sepolicy.info(sepolicy.ATTRIBUTE, 
"port_type"))[0]["types"])
  File "/usr/lib/python3/dist-packages/sepolicy/__init__.py", line 192, in 
<genexpr>
    return ({
  File "/usr/lib/python3/dist-packages/setools/typeattrquery.py", line 65, in 
results
    for attr in self.policy.typeattributes():
AttributeError: 'NoneType' object has no attribute 'typeattributes'

The Ubuntu Error Tracker has been receiving reports about a problem regarding 
policycoreutils.  This problem was most recently seen with package version 
2.6-3, the problem page at 
https://errors.ubuntu.com/problem/83c9fd248e52d65517ffe876691c00c5a8953cee 
contains more details, including versions of packages affected, stacktrace or 
traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software 
developer, you can request it at http://forms.canonical.com/reports/.

** Affects: policycoreutils (Ubuntu)
     Importance: High
         Status: Confirmed


** Tags: artful zesty

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1713419

Title:
  /usr/sbin/semanage:AttributeError:/usr/sbin/semanage@28:/usr/lib/python3
  /dist-packages/seobject.py@1038:portRecords:<genexpr>:results

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/policycoreutils/+bug/1713419/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to