The Type Enforcement Rule Query of apol sometimes crashes when running a query. I'm not able to provide a reliable way of triggering it so it may be a timing related issue.
The error message is always the following:
➜ selinux ~/apps/setools/apol
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
Traceback (most recent call last):
File "/home/celian/apps/setools/setoolsgui/widgets/models/terule.py", line 32, in data
rule = self.item_list[row]
~~~~~~~~~~~~~~^^^^^
IndexError: list index out of range
[1] 6658 IOT instruction ~/apps/setools/apol
https://github.com/SELinuxProject/setools/blob/4468cf889d1346e1ca67ca64f9461c57a8448da0/setoolsgui/widgets/models/terule.py#L32C1-L32C35
I encountered the same issue with version 4.5.1 and the version 4.4.1.
A fix could be to add this check:
if row > len(self.item_list):
return None
But I'm not sure it is appropriate.
Thank you for your work on this project.
The Type Enforcement Rule Query of apol sometimes crashes when running a query. I'm not able to provide a reliable way of triggering it so it may be a timing related issue.
The error message is always the following:
https://github.com/SELinuxProject/setools/blob/4468cf889d1346e1ca67ca64f9461c57a8448da0/setoolsgui/widgets/models/terule.py#L32C1-L32C35
I encountered the same issue with version 4.5.1 and the version 4.4.1.
A fix could be to add this check:
But I'm not sure it is appropriate.
Thank you for your work on this project.