| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/system-config-selinux/ |
Upload File : |
Ñò
†·Jc @ s8 d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d Z e i i e ƒ d d k
Z
d Z d Z d Z
d Z d Z d Z d
Z d d k Z e i e d ƒ e i e ƒ d d k Z y e i e d d d
d ƒWn, e j
o d d k Z e e i d <n Xd d d „ ƒ YZ d S( iÿÿÿÿNs /usr/share/system-config-selinuxi i t disabledt
permissivet enforcings
/etc/selinux/s
/.autorelabelt policycoreutilss /usr/share/localet localedirt unicodet _t
statusPagec B s} e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z d
„ Z d „ Z
d „ Z RS(
c C sä | | _ t | _ t i ƒ | _ | i d ƒ | _ | i d ƒ | _ | i d ƒ | _ | i d ƒ | _
| i d ƒ | _ | i d ƒ | _ | i i
| i ƒ ƒ | i i d | i ƒ | i ƒ t j p | i ƒ t j ol | i i t d ƒ ƒ | i i t d ƒ ƒ | i i
| i ƒ ƒ | i i d
| i ƒ | i i t ƒ n7 | i i t d ƒ ƒ | i i
d ƒ | i i t ƒ | i ƒ d j o
t | _ n | i
i d
| i ƒ | i i d
| i ƒ | i i | i ƒ d S(
Nt typeHBoxt selinuxTypeOptionMenut typeLabelt enabledOptionMenut currentOptionMenut relabelCheckbuttont toggledt
Permissivet Enforcingt changedt Disabledi ( t xmlt Falset needRelabelt selinuxt selinux_getpolicytypet typet
get_widgetR R R
R R t relabel_checkbuttont
set_activet
is_relabelt connectt on_relabel_togglet get_current_modet ENFORCINGt
PERMISSIVEt append_textR t set_current_modet
set_sensitivet Truet read_selinux_configt Nonet selinuxsupportt enabled_changedt typemenu_changedt set_mnemonic_widget( t selfR ( ( s. /usr/share/system-config-selinux/statusPage.pyt __init__6 s2 &
c C s t S( N( R ( R, ( ( s. /usr/share/system-config-selinux/statusPage.pyt use_menusZ s c C s
t d ƒ S( Nt Status( R ( R, ( ( s. /usr/share/system-config-selinux/statusPage.pyt get_description] s c C s5 t i ƒ o t i ƒ d j o t St Sn t Sd S( Ni ( R t is_selinux_enabledt security_getenforceR R! t DISABLED( R, ( ( s. /usr/share/system-config-selinux/statusPage.pyR ` s
c C s t i | i ƒ d j ƒ d S( Ni ( R t security_setenforcet
get_active( R, t menu( ( s. /usr/share/system-config-selinux/statusPage.pyR# i s c C s t i t t i ƒ d j S( Ni ( t ost accesst RELABELFILEt F_OK( R, ( ( s. /usr/share/system-config-selinux/statusPage.pyR l s c C s[ | i ƒ o t t d ƒ } | i ƒ n. t i t t i ƒ d j o t i t ƒ n d S( Nt wi ( R5 t openR9 t closeR7 R8 R: t unlink( R, t buttont fd( ( s. /usr/share/system-config-selinux/statusPage.pyR o s
c C sU t i d d t i t i | ƒ } | i t i ƒ | i ƒ | i ƒ } | i ƒ | S( Ni (
t gtkt
MessageDialogR' t MESSAGE_INFOt BUTTONS_YES_NOt set_positiont
WIN_POS_MOUSEt show_allt runt destroy( R, t messaget dlgt rc( ( s. /usr/share/system-config-selinux/statusPage.pyt verifyw s
c C sš | i ƒ } | i i ƒ } | i | j oH | i t d ƒ ƒ t i j o | i | i ƒ d S| i i t ƒ n | i
t | | ƒ | i ƒ | _ d S( Nsº 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?( t get_typeR R5 t initialtypeRM R RA t RESPONSE_NOR t typeHistoryR' R R% t write_selinux_configt modearray( R, R6 R t enabled( ( s. /usr/share/system-config-selinux/statusPage.pyR* s c C só | i ƒ } | i ƒ } | i t j oE | t j o8 | i t d ƒ ƒ t i j o | i | i ƒ d Sn | i t j oU | d j oH | i t d ƒ ƒ t i j o | i | i ƒ d S| i i t ƒ n | i
t | | ƒ | | _ d S( Ns† 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?i s½ 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?( R5 RN t initEnabledR3 RM R RA RP R RT R' R R% RR RS ( R, t comboRT R ( ( s. /usr/share/system-config-selinux/statusPage.pyR) Ž s c C s' d d k } | i d | | f ƒ d S( Niÿÿÿÿs. /usr/sbin/lokkit --selinuxtype=%s --selinux=%s( t commandst getstatusoutput( R, R R RW ( ( s. /usr/share/system-config-selinux/statusPage.pyRR s c C s t i ƒ d | _ t i ƒ d | _ | i | _ | i i | i d ƒ g | _ d } | } x‘ t i
t ƒ D]€ } t i i
t | ƒ oc t i i
t | d ƒ oH | i i | ƒ | i i | ƒ | | i j o
| } n | d } qn qn W| i i | ƒ | | _ d S( Ni i s /policy( R R RO t selinux_getenforcemodeRU RT R R t typesR7 t listdirt
SELINUXDIRt patht isdirt appendR R"