You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the code of sepolgen, it looks like that some code in policygen.py is using non existing functions seinfo() and sesearch() but this is hidden by the try/catch
Removing the try/catch gives me the following trace:
$ sudo ausearch -m avc -ts yesterday |audit2allow -o foo
Traceback (most recent call last):
File "/usr/bin/audit2allow", line 381, in <module>
app.main()
File "/usr/bin/audit2allow", line 369, in main
self.__output()
File "/usr/bin/audit2allow", line 339, in __output
g.add_access(self.__avs)
File "/usr/lib/python3/dist-packages/sepolgen/policygen.py", line 245, in add_access
self.__add_av_rule(av)
File "/usr/lib/python3/dist-packages/sepolgen/policygen.py", line 202, in __add_av_rule
self.domains = seinfo(ATTRIBUTE, name="domain")[0]["types"]
NameError: name 'seinfo' is not defined
Shouldn't be that bit of code rewritten?
Also, it looks like that this import is now completely useless
The text was updated successfully, but these errors were encountered:
Hello,
Looking at the code of sepolgen, it looks like that some code in policygen.py is using non existing functions
seinfo()
andsesearch()
but this is hidden by the try/catchRemoving the try/catch gives me the following trace:
Shouldn't be that bit of code rewritten?
Also, it looks like that this import is now completely useless
The text was updated successfully, but these errors were encountered: