404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.221.136.116: ~ $
3

�Qf.S�#@s�ddlmZyddlmZej�WnYnXddddddgZdd	lZdd	lZdd	lZydd
l	m
Z
Wn ek
r�dd
lm
Z
YnXdd	l
Z
d	aejjddd
�Zdddd�d
ddd�dddd�ddd�dddd�d
ddd�dddd�dddd�dddd�dddd�dddd�d�d d!d"d�id#d$d�d%d&d�d'd(d�d)�d*d+dd�id,ddd�d-ddd�d.ddd�d/�d,ddd�d-ddd�d.ddd�d/�d0dd�d
dd�d1d2d�dd3d�d4�d5d6dd�iejjd7d8�ddd�d9d:d�d;�ejjd7d8�ddd�d<d:d�d;�d=ddd�d>ddd�d?�d@dAd�dBdCd�dD�dEd@dFd�idGdHd�dIdJd�dK�dLdMd�dNdOd�dPdQd�dRdSd�ejjd0dT�dUd�dV�dWdXd�dYdZd�d[�d\d]d^dd�id_�Zd`d�Zdadb�Zd{dcdd�Zd|ded�Zd}dfd�Zdgd�Ze
jdh�Zdid�Zdjd�Zd~dkdl�Zdmdn�Zedok�r�dpdq�Z y$ejej!drd	�dsdtdug�\Z"Z#Wn(ej$k
�rle �ej%dv�YnXdZ&x8e"D]0\Z'Z(e'dk�r�dZ&e'd�k�rxe �ej%��qxWe&�r�ee�ne�d	S)��)�print_function)�standard_library�config_init�
get_config�
get_option�
set_config�parse_config_setting�config_has_sectionN)�SafeConfigParserz/etc/setroubleshootz%s.confZsetroubleshootz/var/run/setroubleshootd.pid�F)�value�description�readOnlyTz3.3.26z https://pagure.io/setroubleshootzURL of project website)rr
z1.1z/internationalization (i18n) translation catalogz/usr/share/localez9internationalization (i18n) translation catalog directoryzutf-8z.internationalization (i18n) encoding (codeset)z/usr/share/setroubleshootZsetroubleshoot_icon)Zpid_fileZpkg_nameZpkg_versionZproject_urlZrpc_versionZi18n_text_domainZi18n_locale_dirZ
i18n_encodingZdata_dirZ
config_dirZ	icon_nameZweb_browser_launcherz/usr/bin/xdg-openz1Helper application to launch web browser on a URLz/var/run/audit_eventszLunix domain socket used to listen for audit messages (binary audit protocol)z/var/run/audispd_eventszNunix domain socket used to listen for audit messages (textural audit protocol)Z60zgnumber of seconds to wait before trying to connect to audit socket again in the event of socket failure)Zbinary_protocol_socket_pathZtext_protocol_socket_pathZretry_intervalZ
plugin_dirz!/usr/share/setroubleshoot/pluginsz!org.fedoraproject.Setroubleshootdz"/org/fedoraproject/Setroubleshootdz&org.fedoraproject.SetroubleshootdIface)Zbus_nameZobject_pathZ	interfacez/var/lib/setroubleshootZ50z�
Keep no more than this many alerts in the database. Oldest alerts based on
the alert's last seen date will be purged first. Zero implies no limita;
Purge any alerts whose age based on its last seen date exceeds this threshold.
Age may be specified as a sequence of integer unit pairs. Units may be one of
year,month,week,day,hour,minute,second and may optionally be plural.
Example: '2 weeks 1 day' sets the threshold at 15 days.
An empty string implies no limit)Zdatabase_dir�filenameZ
max_alertsZ
max_alert_ageZdefault_portZ69783z/var/run/setroubleshootZsetroubleshoot_serverz{unix}%(path)sa_
List of socket addresses server should listen on for client
connections. Addresses should not contain any whitespace. Each address
is of the form "[{family}]address[:port]" where [] indicates the value
is optional. Valid values for family are inet or unix, if the family
is absent it defaults to inet. If the family is unix the address is
interpreted as a file path. If the family is inet the address is
interpreted as either a host name or IP address. As a special case if
the inet address is "hostname" the current hostname will be
substituted. If the family is inet the address may optionally be
followed by a colon (:) and a port number. If the port number is
absent in the address it defaults to the port specified in this config
section. Example, to listen on the local unix domain socket and
provide remote connections use this "{unix}%(path)s, hostname"
)�pathZaddress_listz{unix}%(path)s hostnameZ2048�5)Zbuf_sizeZtimeoutZwarningz�
setroubleshootd logging level. Levels are the same as in the python logging
module, but are case insenstive. The defined levels in severity order
are:[CRITICAL, ERROR, WARNING, INFO, DEBUG]�Truez/True|False, log full report analysis to journal)�levelZlog_full_reportrz�
sealert logging level. Levels are the same as in the python logging
module, but are case insenstive. The defined levels in severity order are:
[CRITICAL, ERROR, WARNING, INFO, DEBUG]�*z�
Comma-separated list of users allowed to run the client and connect to
the local fault server and therefore see security denials.
Also accepts '*' to allow all users to connect.�roota|
Comma-separated list of users allowed to run the fix commands with
root privileges. Members of this list can execute the fix commands
specified in any alert. The command is executed with root privileges
so you should be very caeful who you add to this list as you are
granting them significant power to alter the security settings of this
system. The wildcard '*' is NOT allowed.)Zclient_usersZ
fix_cmd_usersZ	localhostzThe SMTP server addressZ25zThe SMTP server portZSELinux_TroubleshootzThe From: email headerzSELinux AVC AlertzThe Subject: email headerZemail_alert_recipientsz{Path name of file with email recipients. One address per line, optionally followed by enable flag. Comment character is #. )Z	smtp_hostZ	smtp_portZfrom_addressZsubjectZrecipients_filepathz&https://pagure.io/docs/setroubleshoot/zURL to user help informationz1http://bugzilla.redhat.com/bugzilla/enter_bug.cgizURL used to report bugs)Zhelp_urlZbug_report_urlZanalyze�FalsezPrint plugin report)ZgeneralZhelper_appsZauditZpluginsZsession_dbusZsystem_dbusZdatabaseZ
connectionZlisten_for_clientZclient_connect_toZsocketZsetroubleshootd_logZsealert_log�accessZemail�helpZtestcCstt�adS)N)�read_configuration�defaults�_cfg�rr�/usr/lib/python3.6/config.pyrZsc	Cs�t�}y|jt�Wn6tk
rJ}ztdt|ftjd�dSd}~XnXt|j��}x�|D]�}|j	|�sv|j
|�xtt||j��D]`\}}|d}|jdd�}|j
||�s�|j|||�q�|r�td||ftjd�|j|||�q�Wq^W|S)Nz"error parsing config file (%s): %s)�filerrFz*error [%s] %s cannot be set in config file)r
�read�CFG_FILE�	Exception�print�sys�stderr�list�keys�has_section�add_section�items�getZ
has_option�set)	r�cfg�eZdefault_sectionsZdefault_sectionZdefault_option�
propertiesrrrrrr_s&


rcCs\�y�|dks|tkr|S|tkr(t|�S|tkr~t|t�r>|St|t�rPt|�S|j�dkr`dS|j�dkrpdStd
|��nf|tkr�t|�S|dkr�|Syddlm}|j	d||�Wn*t
k
r�td||ftj
d�YnXWnptk
�rV}zRyddlm}|j	d||�Wn,t
k
�rDtd||ftj
d�YnXWYdd}~XnXdS)N�true�t�yes�y�onT�false�f�no�n�offFzcannot convert %s to boolean�rawr)�log_cfgzunknown type %s for option %sz#error unknown type %s for option %s)r)r/r0r1r2r3)r4r5r6r7r8)�str�int�bool�
isinstance�lower�
ValueError�float�setroubleshoot.logr:�error�ImportErrorr"r#r$r!)r�cfg_typer:r-rrr�convert_cfg_typezs<

 rFcCsFd}|dk	r"||kr"t||�}nt|�r6t|||�}|dkrB|}|S)N)rFr	r)�section�nameZ
default_value�kwdsZoption_typerrrrr�scCsFtdkrdSy�|dks|tkr*tj||�S|tkr>tj||�S|tkrRtj||�S|tkrftj||�S|dkr~tj||dd�Sy ddl	m
}|jd|||�Wn,tk
r�t
d|||ftjd�YnXWnrtk
�r@}zTy ddl	m
}|jd	|||�Wn.tk
�r0t
d
|||ftjd�YnXdSd}~XnXdS)Nr9T)r9r)r:z5unknown type = %s getting %s option in %s section: %sz;error unknown type = %s getting %s option in %s section: %s)rz&cannot get %s option in %s section: %sz,error cannot get %s option in %s section: %s)rr;r*r<Zgetintr=Z
getbooleanrAZgetfloatrBr:rCrDr"r#r$r!)rG�optionrEr:r-rrrr�s2"cCshy2tdkrdStj|�s"tj|�tj|||�Wn0tk
rb}ztjd|||�dSd}~XnXdS)NFz6Cannot set config: section='%s' option='%s' value='%s'T)rr'r(r+r!Zlog_programZ	exception)rGrJrr-rrrr�s

z%([^.=]+?)\s*\.\s*([^.=]+?)\s*=\s*(.*)cCs�tj|�}|r.|jd�}|jd�}|jd�}nHyddlm}|jd|�Wn&tk
rptd|tj	d�YnXd	Sy ddlm}|j
d
|||�Wn,tk
r�td
|||ftj	d�YnXt|||�dS)N���r)r:z4could not parse '%s', must be 'section.option=value'z;error: could not parse '%s', must be 'section.option=value')rFz3setting config: section='%s' option='%s' value='%s'T)�config_setting_re�search�grouprBr:rCrDr"r#r$�debugr)Zcfg_setting�matchrGrJrr:rrrr�s$


cCs�tdkrdSy
tj|�Stk
r�}zNyddlm}|jd||�Wn*tk
rptd||ftj	d�YnXdSd}~XnXdS)Nr)r:zconfig_has_section(%s): %sz!error: config_has_section(%s): %s)rF)
rr'r!rBr:rCrDr"r#r$)rGr-r:rrrr	�s
cCs$ddl}|jdddd�}t|j��}|j�x�|D]�}d}x:t||j��D]&\}}|jdd�}	|sj|	rL|d7}qLW|dkr2td|�x�t||j��D]|\}}|d	}
|jdd�}	|jd
d�}|	r�|r�q�|s�d}t|jd
||��|	�rtd|
�ntd||
f�t�q�Wq2WdS)Nr�Nz# )�widthZinitial_indentZsubsequent_indentrFrKz[%s]rr
rzNo Description Availablez%s: z# READ ONLY, default = "%s"z%s = %s)	�textwrapZTextWrapperr%r&�sortr)r*r"Zfill)rZshowReadOnlyrUZwrap�sectionsrGZvisibleOptionsrJr.rrr
rrr�
dump_defaults
s4



rXcCsd|j�}|j�xN|D]F}|j|�}|j�x(|D] }t||�}td|||f�q2Wt�qWdS)Nz[%s] %s = %s)rWrV�optionsrr")r,rWrGrYrJrrrr�dump_configuration+s



rZ�__main__cCstd�dS)Nz5
    -d generate default config file
    -h help
    )r"rrrr�usage;sr\rKZdhrrrL�-d�
--defaults�-h�--help)N)NNN)N)F)r]r^)r_r`))Z
__future__rZfuturerZinstall_aliases�__all__Zgetoptr#�osZconfigparserr
rDZConfigParser�rerr�joinr rrrrFrrr�compilerNrr	rXrZ�__name__r\�argvZopts�argsZGetoptError�exitZdo_dump_defaults�o�arrrr�<module>sN












&

"

!
$




Filemanager

Name Type Size Permission Actions
Plugin.cpython-36.opt-1.pyc File 5.11 KB 0644
Plugin.cpython-36.pyc File 5.11 KB 0644
__init__.cpython-36.opt-1.pyc File 113 B 0644
__init__.cpython-36.pyc File 113 B 0644
access_control.cpython-36.opt-1.pyc File 3.89 KB 0644
access_control.cpython-36.pyc File 3.89 KB 0644
analyze.cpython-36.opt-1.pyc File 22.17 KB 0644
analyze.cpython-36.pyc File 22.17 KB 0644
audit_data.cpython-36.opt-1.pyc File 27.42 KB 0644
audit_data.cpython-36.pyc File 27.42 KB 0644
avc_audit.cpython-36.opt-1.pyc File 12.36 KB 0644
avc_audit.cpython-36.pyc File 12.36 KB 0644
config.cpython-36.opt-1.pyc File 11.49 KB 0644
config.cpython-36.pyc File 11.49 KB 0644
email_alert.cpython-36.opt-1.pyc File 1.77 KB 0644
email_alert.cpython-36.pyc File 1.77 KB 0644
errcode.cpython-36.opt-1.pyc File 2.63 KB 0644
errcode.cpython-36.pyc File 2.63 KB 0644
html_util.cpython-36.opt-1.pyc File 5.25 KB 0644
html_util.cpython-36.pyc File 5.25 KB 0644
rpc.cpython-36.opt-1.pyc File 28.32 KB 0644
rpc.cpython-36.pyc File 28.32 KB 0644
rpc_interfaces.cpython-36.opt-1.pyc File 4.75 KB 0644
rpc_interfaces.cpython-36.pyc File 4.75 KB 0644
server.cpython-36.opt-1.pyc File 25.04 KB 0644
server.cpython-36.pyc File 25.04 KB 0644
serverconnection.cpython-36.opt-1.pyc File 5.24 KB 0644
serverconnection.cpython-36.pyc File 5.24 KB 0644
signature.cpython-36.opt-1.pyc File 28.08 KB 0644
signature.cpython-36.pyc File 28.08 KB 0644
util.cpython-36.opt-1.pyc File 25.73 KB 0644
util.cpython-36.pyc File 25.73 KB 0644
uuid.cpython-36.opt-1.pyc File 16.13 KB 0644
uuid.cpython-36.pyc File 16.13 KB 0644
xml_serialize.cpython-36.opt-1.pyc File 9.89 KB 0644
xml_serialize.cpython-36.pyc File 9.89 KB 0644