Ñò ìÿÒXc@s…ddkZddkZddkZddkZddkZddkZddkZddkZddklZddk l Z ddk l Z ddk lZdddd d d gZeƒZd ed RUR(Rtservicests((s=/usr/lib/python2.6/site-packages/ipapython/platform/redhat.pyR±s   (R9R:R(((s=/usr/lib/python2.6/site-packages/ipapython/platform/redhat.pyRU°ss/sbin/restoreconcCs}y/tiidƒotidgƒndSWntij odSXtii|ƒoti||gdtƒndS(sñ restore security context on the file path SELinux equivalent is /path/to/restorecon restorecon's return values are not reliable so we have to ignore them (BZ #739604). ipautil.run() will do the logging. s/usr/sbin/selinuxenabledNR/(tostpathtexistsRRR&R%(tfilepatht restorecon((s=/usr/lib/python2.6/site-packages/ipapython/platform/redhat.pyR¼s cCs4tiƒ}ytid|gƒWn5tij o&}tid|t|ƒfIJnXh|d6}d}ti i |ƒpRt |dƒi ƒti |titiBtiBtiBƒti|ddƒnti||d|ƒ}tdƒd|jo|idd |dƒn|idd |ƒdS( Ns /bin/hostnames/Failed to set this machine hostname to %s (%s).tHOSTNAMEs/etc/sysconfig/networktait replacevarstnetworkthostname(tsockett gethostnameRRR&tsysR1tstrRZR[R\topentclosetchmodtstattS_IRUSRtS_IWUSRtS_IRGRPtS_IROTHtchownt#backup_config_and_replace_variablesRt backup_state(tfstoret statestoreRct old_hostnameR-RaR]t old_values((s=/usr/lib/python2.6/site-packages/ipapython/platform/redhat.pyRÓs$ "    cCsty/tiidƒotidgƒndSWntij odSXtii|ƒptd|ƒ‚ndS(sk We don't have a specific package requirement for policycoreutils which provides restorecon. This is because we don't require SELinux on client installs. However if SELinux is enabled then this package is required. This function returns nothing but may raise a Runtime exception if SELinux is enabled but restorecon is not available. s/usr/sbin/selinuxenabledNsoSELinux is enabled but %s does not exist. Install the policycoreutils package and start the installation again.(RZR[R\RRR&t RuntimeError(R^((s=/usr/lib/python2.6/site-packages/ipapython/platform/redhat.pyR ës (!ttempfiletreRZRkRfRdR@t ipapythonRtipapython.platformRtipapython.ipa_log_managerRtipalibRt__all__RVR tPlatformServiceR R;R=t AuthConfigRBRTt KnownServicesRURRRRRR (((s=/usr/lib/python2.6/site-packages/ipapython/platform/redhat.pyts4          E