KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21573/root/usr/lib/python2.4/site-packages/setroubleshoot/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21573/root/usr/lib/python2.4/site-packages/setroubleshoot/Plugin.pyo
mς
3ΤUc@sWdkTdkTdkTdklZdkZdkZdkZde	fd„ƒYZ
dS((t*(sTemplateNtPlugincBsetZdZdZdZdZdZd„Zd„Zd„Z	d„Z
d„Zd„Zd„Z
RS(	s9
    Each plugin object recognizes one or more access denials and
    presents a description of the denial to the user. Optionally,
    the plugin can provide a suggestion for allowing the access
    to the user.

    There are four user visible strings that arepart of each Plugin
    subclass (some or all of these can be changed by the plugin author):
     * summary: summary of the denial
     * problem_description: detailed description of the denial
     * fix_description: description of how to allow the denied access
     * fix_cmd: command that can be used to allow the access

    All of the strings will have a standard set of substitutions performed.
    Each keyword (proceeded by a '$' will be replace by a string) - see
    http://docs.python.org/lib/node109.html for more information. The
    keywords are:
     * $SOURCE_TYPE - type for the source of the avc (usually the
       process performing the operation).
     * $TARGET_TYPE - type for the target of the avc (the type of
       the object).
     * $SOURCE_PATH - source of the executable (from the exe or comm
       field of the exe). A full path is not always available.
     * $TARGET_PATH - path for the target object. A full path is not
       always available.
     * $TARGET_DIR - path of the containing directory for TARGET_PATH.
       Essentially os.path.dirname($TARGET_PATH)
     * $TARGET_CLASS - the object class for the target.
     * $PERMS - the permissions denied.
     * $SOURCE_PACKAGE - name of the package which contains the
       executable (from $SOURCE_PATH).
     * $PORT_NUMBER - the port number for the connection denied.
    Additional subtitutions can be added with set_template_substitutions.

    You can also optional pass the name for a single boolean which will be
    used to set the $BOOLEAN subtitution into Plugin.__init__.
        tcCs%tidd|ƒ|_d|_dS(Ns
^plugins\.Ri2(tretsubtnametselftanalysis_idtpriority(RR((t9/usr/lib/python2.4/site-packages/setroubleshoot/Plugin.pyt__init__Isc&CsΊ|i|iƒ}|iƒxD|iiƒD]3\}}t
|tƒpti
d||ƒq,q,Wt|ƒi|iƒ}t|ƒi|iƒ}t|ƒi|iƒ}
t|ƒi|iƒ}t|||
|ƒ}
|iidj	o|iiiƒntd|id|id|i d|i!d|i"d|i#d|i$d	|i%d
|i&d|i'd|i(d
|i)d|i*||ƒd|
d|d|d|iidt,|ii-ƒƒ}	|	S(sC
        Report a denial and solution to the fault server.
        s.template substitution (%s) is not a string, %sRtaudit_eventtsourcetspathttpathtsrc_rpm_listttgt_rpm_listtscontextttcontextttclasstportthosttsigtsolutiontcategorytenvironmenttline_numberstlast_seen_dateN(/Rtget_environmenttavctquery_environmentRtvalidate_template_substitutionsttemplate_substitutionstitemstktvt
isinstancetstrt
log_plugintwarntTemplatetsummary_templatetsafe_substitutetsummarytproblem_description_templatetproblem_descriptiontfix_description_templatetfix_descriptiontfix_cmd_templatetfix_cmdtSEFaultSolutionRRRtNonetsorttSEFaultSignatureInfoRRR
Rtsrc_rpmsttgt_rpmsRRRRRt
get_signatureRt	TimeStampt	timestamptsiginfo(RRRR)R,R.R0RR-R;R/R1R"RR+R#((R	treportMsB
											cCs"tƒ}|o|iƒn|S(N(t
SEEnvironmentRRtupdate(RRR((R	R€s	cCsLtd|id|id|id|id|id|id|i	ƒ}|S(NRRtaccessRRRR(tSEFaultSignatureRRRRR?RRRRR(RRRR((R	R8†s					cCstS(N(tFalse(RR((R	tanalyze‘scCs
||_dS(N(RR(RR((R	tset_priority”scCs|iS(N(RR(R((R	tget_priority—s(t__name__t
__module__t__doc__R+R-R/R1R
R<RR8RBRCRD(((R	Rs%		3				(tsetroubleshoot.signaturetsetroubleshoot.utiltsetroubleshoot.logtstringR(tsystos.pathtosRtobjectR(RRLRR(RN((R	t?s
			

Anon7 - 2021