Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gui: fix "file type" selection in fcontextPage
A change in seobject.py file_type_str_to_option made the "file type" list not compatible with items in this ComboBox. See commit 317743b ("python/semanage: fix export of fcontext socket entries") Avoid this in the future by populating the ComboBox using keys from file_type_str_to_option. This change disables translations on the file types, but those cause other issues (adding file context fails the same way as with 'socket file' since the translated strings differ form file_type_str_to_option.keys, 'properties' of a file context entry shows no file type for the same reason). Fixes: Traceback (most recent call last): File "/usr/share/system-config-selinux/system-config-selinux.py", line 136, in add self.tabs[self.notebook.get_current_page()].addDialog() File "/usr/share/system-config-selinux/semanagePage.py", line 143, in addDialog if self.add() is False: File "/usr/share/system-config-selinux/fcontextPage.py", line 195, in add (rc, out) = getstatusoutput("semanage fcontext -a -t %s -r %s -f '%s' '%s'" % (type, mls, seobject.file_type_str_to_option[ftype], fspec)) KeyError: 'socket file' Signed-off-by: Vit Mojzis <[email protected]>
- Loading branch information