Lines Matching full:selinux
1 # statusPage.py - show selinux status
27 INSTALLPATH = '/usr/share/system-config-selinux'
36 SELINUXDIR = "/etc/selinux/"
46 import selinux
60 self.type = selinux.selinux_getpolicytype()
99 if selinux.is_selinux_enabled():
100 if selinux.security_getenforce() > 0:
108 selinux.security_setenforce(menu.get_active() == 1)
149 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.RESPONSE_NO:
154 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.RESPONSE_NO:
163 path = selinux.selinux_path() + "config"
170 if l.startswith("SELINUX="):
171 fd.write("SELINUX=%s\n" % enforcing)
181 self.initialtype = selinux.selinux_getpolicytype()[1]
183 self.initEnabled = selinux.selinux_getenforcemode()[1]