HEX
Server: Apache/2.4.6 () OpenSSL/1.0.2k-fips PHP/8.3.8
System: Linux gateway.rmc-logistics.net 4.1.12-124.48.6.el7uek.x86_64 #2 SMP Tue Mar 16 14:57:50 PDT 2021 x86_64
User: apache (48)
PHP: 8.3.8
Disabled: NONE
Upload Files
File: //lib64/python2.7/site-packages/setroubleshoot/config.pyc
�
�njdc@s�ddddddgZddlZddlZddlZddlZddlZdaejj	dd��Z
iiidd6d
d6ed6d6id
d6d
d6ed6d6idd6d
d6ed6d6idd6dd6d6idd6d
d6ed6d6id
d6dd6ed6d6idd6dd6ed6d6idd6dd6ed6d 6id!d6d
d6ed6d"6idd6d
d6ed6d#6id$d6d
d6ed6d%6d&6iid'd6d(d6d)6d*6iid+d6d,d6d-6id.d6d/d6d06id1d6d2d6d36d46iid5d6d
d6d66d76iid8d6d
d6ed6d96id:d6d
d6ed6d;6id<d6d
d6ed6d=6d>6iid8d6d
d6ed6d96id:d6d
d6ed6d;6id<d6d
d6ed6d=6d?6iid@d6d
d6dA6id
d6d
d6dB6idCd6dDd6dE6id
d6dFd6dG6dH6iidId6d
d6dJ6dK6iiejj	dLdM�d6d
d6ed6dN6idOd6dPd6dQ6dR6iiejj	dLdM�d6d
d6ed6dN6idSd6dPd6dQ6dT6iidUd6d
d6ed6dV6idWd6d
d6ed6dX6dY6iidZd6d[d6d\6id]d6d^d6d_6d`6iidZd6dad6d\6db6iidcd6ddd6de6idfd6dgd6dh6di6iidjd6dkd6dl6idmd6dnd6do6idpd6dqd6dr6idsd6dtd6du6iejj	d@dv�d6dwd6dx6dy6iidzd6d{d6d|6id}d6d~d6d6d�6iid�d6d�d6ed6d�6d�6Z
d��Zd��Zdd��Zdddd��Zdd��Zd��Zejd��Zd��Zd��Zed��Zd��Zed�kr�d��Zy,ejejd�d�d�d�g�\ZZWn(ejk
rXe�ej d��nXeZ!xIeD]A\Z"Z#e"d�kr�eZ!ne"d�krfe�ej �qfqfWe!r�ee
�q�ne�dS(�tconfig_initt
get_configt
get_optiont
set_configtparse_config_settingtconfig_has_sectioni����Ns/etc/setroubleshoots%s.conftsetroubleshoots/var/run/setroubleshootd.pidtvaluettdescriptiontreadOnlytpid_filetpkg_names3.2.30tpkg_versions'https://fedorahosted.org/setroubleshootsURL of project websitetproject_urls1.1trpc_versions/internationalization (i18n) translation catalogti18n_text_domains/usr/share/locales9internationalization (i18n) translation catalog directoryti18n_locale_dirsutf-8s.internationalization (i18n) encoding (codeset)t
i18n_encodings/usr/share/setroubleshoottdata_dirt
config_dirtsetroubleshoot_icont	icon_nametgenerals/usr/bin/xdg-opens1Helper application to launch web browser on a URLtweb_browser_launcherthelper_appss/var/run/audit_eventssLunix domain socket used to listen for audit messages (binary audit protocol)tbinary_protocol_socket_paths/var/run/audispd_eventssNunix domain socket used to listen for audit messages (textural audit protocol)ttext_protocol_socket_patht60sgnumber of seconds to wait before trying to connect to audit socket again in the event of socket failuretretry_intervaltaudits!/usr/share/setroubleshoot/pluginst
plugin_dirtpluginss!org.fedoraproject.Setroubleshootdtbus_names"/org/fedoraproject/Setroubleshootdtobject_paths&org.fedoraproject.SetroubleshootdIfacet	interfacetsession_dbustsystem_dbuss/var/lib/setroubleshoottdatabase_dirtfilenamet50s�
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 limitt
max_alertss<
Purge any alerts whose age based on it's 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 limitt
max_alert_agetdatabaset69783tdefault_portt
connections/var/run/setroubleshoottsetroubleshoot_servertpaths{unix}%(path)ss_
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"
taddress_listtlisten_for_clients{unix}%(path)s hostnametclient_connect_tot2048tbuf_sizet5ttimeouttsockettwarnings�
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]tleveltTrues/True|False, log full report analysis to journaltlog_full_reporttsetroubleshootd_logs�
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]tsealert_logt*s�
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.tclient_userstroots|
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.t
fix_cmd_userstaccesst	localhostsThe SMTP server addresst	smtp_hostt25sThe SMTP server portt	smtp_porttSELinux_TroubleshootsThe From: email headertfrom_addresssSELinux AVC AlertsThe Subject: email headertsubjecttemail_alert_recipientss{Path name of file with email recipients. One address per line, optionally followed by enable flag. Comment character is #. trecipients_filepathtemailsHhttps://fedorahosted.org/setroubleshoot/wiki/SETroubleShoot%20User%20FAQsURL to user help informationthelp_urls&https://github.com/oracle/oracle-linuxsURL used to report bugstbug_report_urlthelptFalsesPrint plugin reporttanalyzettestcCstt�adS(N(tread_configurationtdefaultst_cfg(((s;/usr/lib64/python2.7/site-packages/setroubleshoot/config.pyRLsc	Cs#tj�}y|jt�Wn+tk
rJ}tjdt|fIJdSX|j�}x�|D]�}|j	|�s�|j
|�nx�||j�D]�\}}|d}|jdt
�}|j||�s�|j|||�q�|r�tjd||fIJ|j|||�q�q�Wq^W|S(Ns"error parsing config file (%s): %sRR
s*error [%s] %s cannot be set in config file(tConfigParsertSafeConfigParsertreadtCFG_FILEt	ExceptiontsyststderrtNonetkeysthas_sectiontadd_sectiontitemstgetRQt
has_optiontset(	RUtcfgtetdefault_sectionstdefault_sectiontdefault_optiont
propertiesRR
((s;/usr/lib64/python2.7/site-packages/setroubleshoot/config.pyRTPs&

cCs�y%|dks|tkr|S|tkr5t|�S|tkr�t|t�rT|St|t�rmt|�S|j�dkr�tS|j�dkr�tStd|��nx|t	kr�t	|�S|dkr�|Sy'd
dl
m}|jd||�Wn(t
k
r#tjd||fIJnXWnetk
r�}y'd
dl
m}|jd||�Wq�t
k
r�tjd||fIJq�XnXdS(Nttruetttyestytontfalsetftnotntoffscannot convert %s to booleantrawi����(tlog_cfgsunknown type %s for option %ss#error unknown type %s for option %s(RlRmsyesRoRp(RqRrRsRtRu(R^tstrtinttboolt
isinstancetlowerR;RQt
ValueErrortfloattsetroubleshoot.logRwterrortImportErrorR\R]R[(Rtcfg_typeRwRg((s;/usr/lib64/python2.7/site-packages/setroubleshoot/config.pytconvert_cfg_typejs<




cCsnd}|dk	r4|j|�r4t||�}n!t|�rUt|||�}n|dkrj|}n|S(N(R^thas_keyR�RR(tsectiontnamet
default_valuetkwdstoption_typeR((s;/usr/lib64/python2.7/site-packages/setroubleshoot/config.pyR�s	cCs}tdkrdSy�|dks+|tkr;tj||�S|tkrWtj||�S|tkrstj||�S|tkr�tj	||�S|dkr�tj||dt
�Sy*ddlm}|j
d|||�Wn+tk
rtjd|||fIJnXWnltk
rx}y*ddlm}|j
d|||�Wn+tk
rstjd|||fIJnXdSXdS(NRvi����(Rws5unknown type = %s getting %s option in %s section: %ss;error unknown type = %s getting %s option in %s section: %ss&cannot get %s option in %s section: %ss,error cannot get %s option in %s section: %s(RVR^RxRcRytgetintRzt
getbooleanR~tgetfloatR;RRwR�R�R\R]R[(R�toptionR�RwRg((s;/usr/lib64/python2.7/site-packages/setroubleshoot/config.pyR�s2
"
cCswyFtdkrtStj|�s2tj|�ntj|||�Wn*tk
rr}tjd|||�tSXt	S(Ns6Cannot set config: section='%s' option='%s' value='%s'(
RVR^RQR`RaReR[tlog_programt	exceptionR;(R�R�RRg((s;/usr/lib64/python2.7/site-packages/setroubleshoot/config.pyR�ss%([^.=]+?)\s*\.\s*([^.=]+?)\s*=\s*(.*)cCs�tj|�}|rE|jd�}|jd�}|jd�}nMy$ddlm}|jd|�Wn"tk
r�tjd|IJnXt	Sy*ddlm}|j
d|||�Wn+tk
r�tjd|||fIJnXt|||�tS(	Niiii����(Rws4could not parse '%s', must be 'section.option=value's;error: could not parse '%s', must be 'section.option=value's3setting config: section='%s' option='%s' value='%s'(
tconfig_setting_retsearchtgroupRRwR�R�R\R]RQtdebugRR;(tcfg_settingtmatchR�R�RRw((s;/usr/lib64/python2.7/site-packages/setroubleshoot/config.pyR�s$

cCs�tdkrdSytj|�SWnftk
r�}y'ddlm}|jd||�Wn(tk
r�tj	d||fIJnXt
SXdS(Ni����(Rwsconfig_has_section(%s): %ss!error: config_has_section(%s): %s(RVR^R`R[RRwR�R�R\R]RQ(R�RgRw((s;/usr/lib64/python2.7/site-packages/setroubleshoot/config.pyR�s
cCsiddl}|jdddddd�}|j�}|j�x"|D]}d}xJ||j�D]8\}}|jdt�}	|s�|	rd|d	7}qdqdW|dkrGd
|GHx�||j�D]�\}}|d}
|jdt�}	|jdd
�}|	r|rq�n|s"d}n|jd||�GH|	rJd|
GHnd||
fGHHq�WqGqGWdS(Ni����twidthiNtinitial_indents# tsubsequent_indentiR
is[%s]RR	RsNo Description Availables%s: s# READ ONLY, default = "%s"s%s = %s(ttextwraptTextWrapperR_tsortRbRcRQtfill(RUtshowReadOnlyR�twraptsectionsR�tvisibleOptionsR�RkR
RR	((s;/usr/lib64/python2.7/site-packages/setroubleshoot/config.pyt
dump_defaults�s4


	

	cCsw|j�}|j�xZ|D]R}|j|�}|j�x/|D]'}t||�}d|||fGHqCWHqWdS(Ns[%s] %s = %s(R�R�toptionsR(RfR�R�R�R�R((s;/usr/lib64/python2.7/site-packages/setroubleshoot/config.pytdump_configurations



t__main__cCs	dGHdS(Ns5
    -d generate default config file
    -h help
    ((((s;/usr/lib64/python2.7/site-packages/setroubleshoot/config.pytusagesitdhRUis-ds
--defaultss-hs--helpssetroubleshoot.conf(s-ds
--defaults(s-hs--help($t__all__tgetoptR\tosRWtreR^RVR0tjoinRZRQR;RURRTR�RRRtcompileR�RRR�R�t__name__R�targvtoptstargstGetoptErrortexittdo_dump_defaultstota(((s;/usr/lib64/python2.7/site-packages/setroubleshoot/config.pyt<module>s�			!!			 		,