Comment # 3 on bug 1121455 from
(In reply to Thorsten Kukuk from comment #0)
I can't reproduce this one. Using your repo I get after installing
policycoreutils
# semanage --help
Traceback (most recent call last):
  File "/usr/sbin//semanage", line 28, in <module>
    import seobject
  File "/usr/lib/python3.6/site-packages/seobject.py", line 1045, in <module>
    class portRecords(semanageRecords):
  File "/usr/lib/python3.6/site-packages/seobject.py", line 1047, in
portRecords
    valid_types = list(list(sepolicy.info(sepolicy.ATTRIBUTE,
"port_type"))[0]["types"])
  File "/usr/lib/python3.6/site-packages/sepolicy/__init__.py", line 197, in
<genexpr>
    return ({
  File "/usr/lib64/python3.6/site-packages/setools/typeattrquery.py", line 65,
in results
    for attr in self.policy.typeattributes():
AttributeError: 'NoneType' object has no attribute 'typeattributes'

Once the policy installed it works (obviously still needs to be fixed). Which
packages do you have installed?


You are receiving this mail because: