403Webshell
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/lib/python2.6/site-packages/setroubleshoot/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/setroubleshoot/access_control.pyo
Ñò
€®åJc
@sWdZddkZddkZddklZddkTdgZy
eiZWnïe	j
oãddk
Z
ddkZe
iƒdZ
eide
ƒo
dZq@eid	e
ƒo
dZq@eid
e
ƒo
dZq@eide
ƒo
d
Zq@eide
ƒo
dZq@eide
ƒo
dZq@dZnXddd„ƒYZdS(s©Access control for setroubleshoot. For now this is only used for
determining which users are allowed to connect to the server: see
UserServerAccess for more information.iÿÿÿÿN(t
get_config(t*tServerAccessis^i\d86is^x86_64s^(ppc|powerpc)is
^(alpha|mips)is^sparci@s^parisci@cBsoeZdZhhed6d6hed6d6Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„ZRS(sg
    Determine if a user should be given access to the server based
    on the configuration file.
    twildcardtclienttfix_cmdcCs=h|_x-tiiƒD]}|i|ƒ|i|<qWdS(N(t
privilegesRtkeystinit_privilege(tselft	privilege((sA/usr/lib/python2.6/site-packages/setroubleshoot/access_control.pyt__init__Ds	cCsAg}tdd|ƒidƒD]}||iƒq!~}|S(Ntaccesss%s_userst,(Rtsplittstrip(R	R
t_[1]tnamet	cfg_names((sA/usr/lib/python2.6/site-packages/setroubleshoot/access_control.pyROs6cCs2tii|ƒ}|otStid|ƒtS(Nsunknown access privilege (%s)(RRthas_keytTruetlog_programterrortFalse(R	R
tvalid((sA/usr/lib/python2.6/site-packages/setroubleshoot/access_control.pytvalid_privilegeTs
cCs=|i|ƒptSti|dptSd|i|jS(NRR(RRRR(R	R
((sA/usr/lib/python2.6/site-packages/setroubleshoot/access_control.pytunrestricted_privilegeZs
cCsK|i|ƒptS|i|ƒotS||i|jotStSdS(sƒ
        Determine if the given user name is allowed access.
        Returns True if access should be given, False if not.
        N(RRRRR(R	R
tuser((sA/usr/lib/python2.6/site-packages/setroubleshoot/access_control.pytuser_allowedascCst|i|ƒptS|i|ƒotSyddk}|i|ƒ}Wntj
otSX|i||dƒS(sÅ
        Determine if the given uid is allowed access. No error
        is returned if the uid is invalid (False is returned).
        Returns True if access should be given, False if not.
        iÿÿÿÿNi(RRRRtpwdtgetpwuidtKeyErrorR(R	R
tuidRt	pwd_entry((sA/usr/lib/python2.6/site-packages/setroubleshoot/access_control.pytuid_allowedosc

Csd}}}y(|i}|tijo||fSWntj
onXd}ti|ƒ}y||itit	|ƒ}ti
||ƒ\}}}|djo
d}n|djo
d}n|djo
d}nWn3tj
o'}	d}}}ti
d|	ƒnX||fS(sêObtain the effective user and group IDs of the process on
        the other end of a socket. SO_PEERCRED is used so the information
        returned is generally trustworthy (though root processes can
        impersonate any uid/gid).tIIIiÿÿÿÿsget_credentials(): %sN(tNonetfamilytSockettAF_UNIXtAttributeErrortstructtcalcsizet
getsockoptt
SOL_SOCKETtSO_PEERCREDtunpackt	ExceptionRR(
R	tsocktpidR tgidR%tformat_ucredtsizeof_ucredtucredte((sA/usr/lib/python2.6/site-packages/setroubleshoot/access_control.pytget_credentials„s,	




(
t__name__t
__module__t__doc__RRRRRRRRR"R7(((sA/usr/lib/python2.6/site-packages/setroubleshoot/access_control.pyR:s						((R:R)tsocketR&tsetroubleshoot.configRtsetroubleshoot.logt__all__R-R(tostretunametmachinetsearchR(((sA/usr/lib/python2.6/site-packages/setroubleshoot/access_control.pyt<module>s2
	








Youez - 2016 - github.com/yon3zu
LinuXploit