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

Bug #1713419 reported by errors.ubuntu.com bug bridge
44
This bug affects 5 people
Affects Status Importance Assigned to Milestone
selinux-python (Ubuntu)
Confirmed
High
Unassigned

Bug Description

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/.

Tags: artful zesty
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in policycoreutils (Ubuntu):
status: New → Confirmed
description: updated
description: updated
Changed in policycoreutils (Ubuntu):
importance: Undecided → High
affects: policycoreutils (Ubuntu) → selinux-python (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.