/external/selinux/gui/ |
modulesPage.py | 26 from gi.repository import GObject, Gtk 61 self.store = Gtk.ListStore(GObject.TYPE_STRING, GObject.TYPE_STRING, 64 self.store.set_sort_column_id(0, Gtk.SortType.ASCENDING) 65 col = Gtk.TreeViewColumn(_("Module Name"), Gtk.CellRendererText(), text=0) 69 self.store.set_sort_column_id(0, Gtk.SortType.ASCENDING) 70 col = Gtk.TreeViewColumn(_("Priority"), Gtk.CellRendererText(), text=1) 78 self.store.set_sort_column_id(2, Gtk.SortType.ASCENDING) 79 col = Gtk.TreeViewColumn(_("Kind"), Gtk.CellRendererText(), text=2 [all...] |
semanagePage.py | 20 from gi.repository import Gdk, Gtk 45 while Gtk.events_pending(): 46 Gtk.main_iteration() 109 dlg = Gtk.MessageDialog(None, 0, Gtk.MessageType.INFO, 110 Gtk.ButtonsType.YES_NO, 113 dlg.set_position(Gtk.WindowPosition.MOUSE) 120 dlg = Gtk.MessageDialog(None, 0, Gtk.MessageType.ERROR, 121 Gtk.ButtonsType.CLOSE [all...] |
booleansPage.py | 22 from gi.repository import Gdk, GObject, Gtk 110 listStore = Gtk.ListStore(GObject.TYPE_STRING) 111 cell = Gtk.CellRendererText() 113 self.store = Gtk.ListStore(GObject.TYPE_BOOLEAN, GObject.TYPE_STRING, GObject.TYPE_STRING, GObject.TYPE_STRING) 114 self.store.set_sort_column_id(1, Gtk.SortType.ASCENDING) 117 checkbox = Gtk.CellRendererToggle() 119 col = Gtk.TreeViewColumn('Active', checkbox, active=ACTIVE) 124 col = Gtk.TreeViewColumn("Module", Gtk.CellRendererText(), text=MODULE) 129 col = Gtk.TreeViewColumn("Description", Gtk.CellRendererText(), text=DESC [all...] |
polgengui.py | 26 gi.require_version('Gtk', '3.0') 27 from gi.repository import Gtk 98 xml = Gtk.Builder() 285 self.boolean_store = Gtk.ListStore(GObject.TYPE_STRING, GObject.TYPE_STRING) 287 self.boolean_store.set_sort_column_id(0, Gtk.SortType.ASCENDING) 288 col = Gtk.TreeViewColumn(_("Name"), Gtk.CellRendererText(), text=0) 290 col = Gtk.TreeViewColumn(_("Description"), Gtk.CellRendererText(), text=1) 294 self.role_store = Gtk.ListStore(GObject.TYPE_STRING [all...] |
loginsPage.py | 25 from gi.repository import GObject, Gtk 56 self.store = Gtk.ListStore(GObject.TYPE_STRING, GObject.TYPE_STRING, GObject.TYPE_STRING) 58 self.store.set_sort_column_id(0, Gtk.SortType.ASCENDING) 59 col = Gtk.TreeViewColumn(_("Login\nName"), Gtk.CellRendererText(), text=0) 63 col = Gtk.TreeViewColumn(_("SELinux\nUser"), Gtk.CellRendererText(), text=1) 66 col = Gtk.TreeViewColumn(_("MLS/\nMCS Range"), Gtk.CellRendererText(), text=2) 93 liststore = Gtk.ListStore(GObject.TYPE_STRING [all...] |
system-config-selinux.py | 27 gi.require_version('Gtk', '3.0') 29 from gi.repository import Gtk 74 xml = Gtk.Builder() 115 dlg = Gtk.MessageDialog(None, 0, Gtk.MessageType.ERROR, 116 Gtk.ButtonsType.CLOSE, 118 dlg.set_position(Gtk.WindowPosition.MOUSE) 150 Gtk.main_quit() 172 self.store = Gtk.ListStore(GObject.TYPE_STRING) 174 col = Gtk.TreeViewColumn("", Gtk.CellRendererText(), text=0 [all...] |
usersPage.py | 25 from gi.repository import GObject, Gtk 56 self.store = Gtk.ListStore(GObject.TYPE_STRING, GObject.TYPE_STRING, GObject.TYPE_STRING, GObject.TYPE_STRING, GObject.TYPE_STRING) 58 self.store.set_sort_column_id(0, Gtk.SortType.ASCENDING) 60 col = Gtk.TreeViewColumn(_("SELinux\nUser"), Gtk.CellRendererText(), text=0) 65 col = Gtk.TreeViewColumn(_("MLS/\nMCS Range"), Gtk.CellRendererText(), text=1) 69 col = Gtk.TreeViewColumn(_("SELinux Roles"), Gtk.CellRendererText(), text=2)
|
fcontextPage.py | 19 from gi.repository import GObject, Gtk 77 self.store = Gtk.ListStore(GObject.TYPE_STRING, GObject.TYPE_STRING, GObject.TYPE_STRING) 82 col = Gtk.TreeViewColumn(_("File\nSpecification"), Gtk.CellRendererText(), text=SPEC_COL) 83 col.set_sizing(Gtk.TreeViewColumnSizing.FIXED) 89 col = Gtk.TreeViewColumn(_("Selinux\nFile Type"), Gtk.CellRendererText(), text=TYPE_COL) 91 col.set_sizing(Gtk.TreeViewColumnSizing.FIXED) 96 col = Gtk.TreeViewColumn(_("File\nType"), Gtk.CellRendererText(), text=2 [all...] |
domainsPage.py | 26 from gi.repository import GObject, Gtk 60 self.store = Gtk.ListStore(GObject.TYPE_STRING, GObject.TYPE_STRING) 62 self.store.set_sort_column_id(0, Gtk.SortType.ASCENDING) 63 col = Gtk.TreeViewColumn(_("Domain Name"), Gtk.CellRendererText(), text=0) 67 self.store.set_sort_column_id(0, Gtk.SortType.ASCENDING) 68 col = Gtk.TreeViewColumn(_("Mode"), Gtk.CellRendererText(), text=1)
|
statusPage.py | 21 from gi.repository import Gtk 124 dlg = Gtk.MessageDialog(None, 0, Gtk.MessageType.INFO, 125 Gtk.ButtonsType.YES_NO, 127 dlg.set_position(Gtk.WindowPosition.MOUSE) 137 if self.verify(_("Changing the policy type will cause a relabel of the entire file system on the next boot. Relabeling takes a long time depending on the size of the file system. Do you wish to continue?")) == Gtk.ResponseType.NO: 151 if self.verify(_("Changing to SELinux disabled requires a reboot. It is not recommended. If you later decide to turn SELinux back on, the system will be required to relabel. If you just want to see if SELinux is causing a problem on your system, you can go to permissive mode which will only log errors and not enforce SELinux policy. Permissive mode does not require a reboot Do you wish to continue?")) == Gtk.ResponseType.NO: 156 if self.verify(_("Changing to SELinux enabled will cause a relabel of the entire file system on the next boot. Relabeling takes a long time depending on the size of the file system. Do you wish to continue?")) == Gtk.ResponseType.NO:
|
portsPage.py | 20 from gi.repository import GObject, Gtk 90 self.store = Gtk.ListStore(GObject.TYPE_STRING, GObject.TYPE_STRING, GObject.TYPE_STRING, GObject.TYPE_STRING) 92 self.store.set_sort_column_id(0, Gtk.SortType.ASCENDING) 95 col = Gtk.TreeViewColumn(_("SELinux Port\nType"), Gtk.CellRendererText(), text=TYPE_COL) 99 self.store.set_sort_column_id(TYPE_COL, Gtk.SortType.ASCENDING) 101 col = Gtk.TreeViewColumn(_("Protocol"), Gtk.CellRendererText(), text=PROTOCOL_COL) 106 self.mls_col = Gtk.TreeViewColumn(_("MLS/MCS\nLevel"), Gtk.CellRendererText(), text=MLS_COL [all...] |
/external/selinux/sandbox/ |
sandbox | 115 gi.require_version('Gtk', '3.0') 116 from gi.repository import Gtk 117 dlg = Gtk.MessageDialog(None, 0, Gtk.MessageType.INFO, 118 Gtk.ButtonsType.YES_NO, 121 dlg.set_position(Gtk.WindowPosition.MOUSE) 125 if rc == Gtk.ResponseType.YES: 462 gi.require_version('Gtk', '3.0') 463 from gi.repository import Gtk 464 dpi = str(Gtk.Settings.get_default().props.gtk_xft_dpi / 1024 [all...] |
/external/selinux/python/sepolicy/sepolicy/ |
gui.py | 28 gi.require_version('Gtk', '3.0') 29 from gi.repository import Gtk 131 builder = Gtk.Builder() # BUILDER OBJ 182 self.login_liststore.set_sort_column_id(0, Gtk.SortType.ASCENDING) 193 self.user_liststore.set_sort_column_id(0, Gtk.SortType.ASCENDING) 215 self.file_equiv_liststore.set_sort_column_id(0, Gtk.SortType.ASCENDING) 341 self.executable_files_liststore.set_sort_column_id(0, Gtk.SortType.ASCENDING) 350 self.writable_files_liststore.set_sort_column_id(0, Gtk.SortType.ASCENDING) 364 self.application_files_liststore.set_sort_column_id(0, Gtk.SortType.ASCENDING) 375 self.network_out_liststore.set_sort_column_id(0, Gtk.SortType.ASCENDING [all...] |