selinux/gui
Vit Mojzis 9b4e9c4bf0 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 317743bbe2 ("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 <vmojzis@redhat.com>
2021-02-24 15:13:25 +01:00
..
ru Add man pages translation by Olesya Gerasimenko 2019-01-28 12:03:57 +01:00
booleansPage.py gui: port to Python 3 by migrating to PyGI 2017-09-25 12:54:12 -04:00
COPYING Add COPYING files for new subdirs. 2016-11-16 11:19:51 -05:00
domainsPage.py gui: port to Python 3 by migrating to PyGI 2017-09-25 12:54:12 -04:00
fcontextPage.py gui: fix "file type" selection in fcontextPage 2021-02-24 15:13:25 +01:00
loginsPage.py gui: port to Python 3 by migrating to PyGI 2017-09-25 12:54:12 -04:00
Makefile gui: Install .desktop files to /usr/share/applications by default 2019-03-18 22:06:40 +01:00
modulesPage.py gui: Fix remove module in system-config-selinux 2019-09-26 08:31:56 -04:00
org.selinux.config.policy Move policycoreutils/gui to gui. 2016-11-16 11:19:50 -05:00
polgen.ui Fix many misspellings 2019-09-18 22:47:35 +02:00
polgengui.py Fix many misspellings 2019-09-18 22:47:35 +02:00
portsPage.py gui: port to Python 3 by migrating to PyGI 2017-09-25 12:54:12 -04:00
selinux-polgengui.8 Move policycoreutils/gui to gui. 2016-11-16 11:19:50 -05:00
selinux-polgengui.desktop Move policycoreutils/gui to gui. 2016-11-16 11:19:50 -05:00
semanagePage.py gui/semanagePage: Close "edit" and "add" dialogues when successfull 2018-03-01 09:41:54 -05:00
sepolgen Move policycoreutils/gui to gui. 2016-11-16 11:19:50 -05:00
sepolicy_16.png Move sepolicy desktop and png files to gui. 2016-11-16 11:19:51 -05:00
sepolicy_22.png Move sepolicy desktop and png files to gui. 2016-11-16 11:19:51 -05:00
sepolicy_32.png Move sepolicy desktop and png files to gui. 2016-11-16 11:19:51 -05:00
sepolicy_48.png Move sepolicy desktop and png files to gui. 2016-11-16 11:19:51 -05:00
sepolicy_256.png Move sepolicy desktop and png files to gui. 2016-11-16 11:19:51 -05:00
sepolicy.desktop Move sepolicy desktop and png files to gui. 2016-11-16 11:19:51 -05:00
statusPage.py gui: port to Python 3 by migrating to PyGI 2017-09-25 12:54:12 -04:00
system-config-selinux Move policycoreutils/gui to gui. 2016-11-16 11:19:50 -05:00
system-config-selinux.8 Move policycoreutils/gui to gui. 2016-11-16 11:19:50 -05:00
system-config-selinux.desktop Move policycoreutils/gui to gui. 2016-11-16 11:19:50 -05:00
system-config-selinux.png Move policycoreutils/gui to gui. 2016-11-16 11:19:50 -05:00
system-config-selinux.py Fix many misspellings 2019-09-18 22:47:35 +02:00
system-config-selinux.ui gui: fix "file type" selection in fcontextPage 2021-02-24 15:13:25 +01:00
usersPage.py gui: delete overridden definition of usersPage.delete() 2017-10-02 01:51:49 +08:00
VERSION Update VERSIONs to 3.2-rc2 for release. 2021-02-03 11:26:28 +01:00