403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/apport/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/apport/__pycache__/sandboxutils.cpython-314.pyc
+
e��i-3���Rt^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RI	t^RI
HtRt
RtR
RltRRltRRR	lltR#)zFunctions to manage sandboxes.N)�implc��/pVPRR4RVPRR42P4F9pVP4'gKVP4R,wr4YAT&K;	\VP44# \d%\
PPRT4K�i;i)z�Determine necessary packages for given report.

Return list of (pkgname, version) pairs. version might be None for unknown
package versions.
�Package��
�Dependencies�N�N�%invalid Package/Dependencies line: %s)
�get�
splitlines�strip�split�
ValueError�apport�logging�warning�list�items)�report�pkgs�line�pkg�versions&    �5/usr/lib/python3/dist-packages/apport/sandboxutils.py�needed_packagesrs����D��:�:�i��$�
%�R��
�
�>�2�(F�'G�H��j�l����z�z�|�|��	��:�:�<��+�L�C�
�S�	����
�
�����
�	��N�N�"�"�#J�D�Q��	�s�B�+B=�<B=c�R�/pVPRR4RVPRR42P4F9pVP4'gKVP4R,wr4YAT&K;	V# \d%\
PPRT4Kmi;i)z1Return package -> version dictionary from report.rrrrrr
)rrr
rrrrr)r�pkg_versrrrs&    r�report_package_versionsr2s����H��:�:�i��$�
%�R��
�
�>�2�(F�'G�H��j�l����z�z�|�|��	��:�:�<��+�L�C�
 ��
���O��
�	��N�N�"�"�#J�D�Q��	�s�A7�7+B&�%B&c
�
�\4p\4pRV9d�VR,P4F�pVP4'gKVP4p\	V4R
9gK=RV^,9gKMRV^,9gK]\
PPV^,4pVPV4K�	M4\PPVR,4P4p\
PPV4'g\
P!V4VF�p\P !VRVVR,VP#R4R7p	V	'dBV'd'\P$P'R	VR
V	R24VPV	4K}\P$P)RV4K�	VU
u.uFq�VP#V
43NK	up
#uup
i)a�Determine necessary runtime packages for given report.

This determines libraries dynamically loaded at runtime in two cases:
1. The executable has already run: /proc/pid/maps is used, from the report
2. The executable has not already run: shared_libraries() is used

The libraries are resolved to the packages that installed them.

Return list of (pkgname, None) pairs.

When pkgmap_cache_dir is specified, it is used as a cache for
get_file_package().
�ProcMaps�xz.so�ExecutablePathT�
DistroRelease�Architecture��release�archzdynamically loaded z needs package z
, queueingz/%s is needed, but cannot be mapped to a package>��)�setrr
r�len�os�path�realpath�addr�	fileutils�shared_libraries�values�exists�makedirs�	packaging�get_file_packagerr�logr)r�pkgmap_cache_dir�pkg_versions�verboser�libsr�cols�libr�ps&&&&       r�needed_runtime_packagesr?Es��� �5�D��5�D��V���:�&�1�1�3�D��:�:�<�<���:�:�<�D��4�y�F�"�s�d�1�g�~�%�4��7�:J��g�g�&�&�t�A�w�/������
�
4����0�0��8H�1I�J�Q�Q�S��
�7�7�>�>�*�+�+�
���$�%����(�(�����?�+����N�+�
�������"�"�)�$���s�e�:�N��
�H�H�S�M��N�N�"�"�A�4�
��&/3�3�d��� � ��#�$�d�3�3��3s�"Hc�n�V^8�dQhR\\\R\,3,,RR/#)r	rN�return)r�tuple�str)�formats"r�__annotate__rE|s,�����e�C����O�&<�!=��$��c�z�\V4F+wpwr#VR8XgKVPV4RV3.VR&R#	R#)z2Move base-files to the front or add it if missing.z
base-files:N�NN)�	enumerate�pop)r�irrs&   r�_move_base_files_firstrL|s>��&�t�_���>�C��,���H�H�Q�K�%�w�/�0�D��H��	-rFc�&�V^8�dQhR\PPR\R,R\R,R\R,R\\,R,R\
R\
R	\
R
\\\\3,/	#)r	r�
config_dirN�	cache_dir�sandbox_dir�extra_packagesr:�log_timestamps�dynamic_originsrA)rr�ReportrCr�boolrB)rDs"rrErE�s���Z0�Z0��M�M� � �Z0��d�
�Z0��T�z�Z0��t��	Z0�
��I��$�Z0��
Z0��Z0��Z0��3��S�=��Z0rFc��V'd^\PPV4p\PPV4'g\P!V4RpM>\
P!RR7p\P!\PV4RpV'd!\PPV4pM<\
P!RR7p\P!\PV4\PPW R,4p	.p
RV9g/RVPR	R
4VPRR
4,9d\V4p
VR8XdR
pR
pV'd�VPR	R
4RVPRR
42p\P!R4p
\!V
P#V44pV'd#\$P&P)RV24\+V
4\,P.!VVVR,V
VVVVPR4VR7	pV'dRX\,P.!TTVR,VUu.uFpVR
3NK		upVVVVPR4VRRR7,
p\7V4p\9W	VV4p
R#F�pVV9gK\,P:!VV,RV	VR,VPR4R7pVR8XdVR,R8XdRVR&RpV'dK\$P&P)RVRV2V4V
P=VVPV434K�\$P&P3RVVV,4K�	V
'd>X\,P.!VVVR,V
VVVVPR4VR7	,
pR	V9Ed#R#EFpVV9gK
\PP?W0V,,4'dKAVV,PAR4'd�\PP?W0V,R,,4'dVV,R,VV&K�\$P&P3R VW0V,,VR	,4K�\$P&P3R VW0V,,VR	,4EK	X'dW�R!&\$P&PCR"4W2V3# \0d5p\$P&P3R\5T44R
p?EL)R
p?ii;iuupi \0d5p\$P&P3R\5T44R
p?ELR
p?ii;i \0d5p\$P&P3R\5T44R
p?ELR
p?ii;i)$a�Build a sandbox with the packages that belong to a particular report.

This downloads and unpacks all packages from the report's Package and
Dependencies fields, plus all packages that ship the files from ProcMaps
(often, runtime plugins do not appear in Dependencies), plus optionally
some extra ones, for the distro release and architecture of the report.

For unpackaged executables, there are no Dependencies. Packages for shared
libraries are unpacked.

report is an apport.report.Report object to build a sandbox for. Presence
of the Package field determines whether to determine dependencies through
packaging (via the optional report['Dependencies'] field), or through ldd
via needed_runtime_packages() -> shared_libraries().  Usually
report['Architecture'] and report['Uname'] are present.

config_dir points to a directory with by-release configuration files for
the packaging system, or "system"; this is passed to
apport.packaging.install_packages(), see that method for details.

cache_dir points to a directory where the downloaded packages and debug
symbols are kept, which is useful if you create sandboxes very often. If
not given, the downloaded packages get deleted at program exit.

sandbox_dir points to a directory with a permanently unpacked sandbox with
the already unpacked packages. This speeds up operations even further if
you need to create sandboxes for different reports very often; but the
sandboxes can become very big over time, and you must ensure that an
already existing sandbox matches the DistroRelease: and Architecture: of
report. If not given, a temporary directory will be created which gets
deleted at program exit.

extra_packages can specify a list of additional packages to install which
are not derived from the report and will be installed along with their
dependencies.

If verbose is True (False by default), this will write some additional
logging to stdout.

If log_timestamps is True, these log messages will be prefixed with the
current time.

If dynamic_origins is True (False by default), the sandbox will be built
with packages from foreign origins that appear in the report's
Packages:/Dependencies:.

Return a tuple (sandbox_dir, cache_dir, outdated_msg).
T�apport_sandbox_)�prefixF�
apport_cache_r#r z[originrrr�systemNrz+\[origin: ([a-zA-Z0-9][a-zA-Z0-9\+\.\-]+)\]z	Origins: r$)�architecture�originsz%s)r[r\�install_dbg�install_depsr"r%�	systemctl�
SourcePackage�systemdz/bin/systemctlzInstalling extra package z to get z%Cannot find package which ships %s %sz/usr:�NNz2%s %s does not exist (report specified package %s)�RetraceOutdatedPackagesz
built sandbox)�InterpreterPathr")"r,r-�abspath�isdirr4�tempfile�mkdtemp�atexit�register�shutil�rmtree�joinrr�re�compiler*�findallrrr7rLr5�install_packages�SystemError�fatalrCrr?r6�appendr3�
startswith�memdbg)rrNrOrPrQr:rRrS�permanent_rootdirr8rr\�pkg_list�match�outdated_msg�errorr>r9r-rs&&&&&&&&            r�make_sandboxr|�s���z��g�g�o�o�k�2���w�w�}�}�[�)�)��K�K��$� ���&�&�.?�@������
�
�{�3�!����G�G�O�O�I�.�	��$�$�O�<�	�����
�
�y�1��w�w�|�|�I�o�/F�G��
�D�
���9��
�
�9�b�!�F�J�J�~�r�$B�B�$��v�&���X���
��G���j�j��B�/�0��6�:�:�n�b�3Q�2R�S���
�
�I�J���e�m�m�H�-�.����N�N����7�)�4�5��4� �
/� �1�1����?�#��������N�3��

���	3��I�6�6�����'�$2�3�N�q�!�T��N�3���!�#�Z�Z��7��!�!��
�L� +�6�2�L�"�6�\�7�S�D�6���6�>��,�,��t��� ���/��Z�Z��/��C��k�!��/�*�i�7�/?�F�+�,�#�C�����"�"�/��u�H�T�F�C�^�����S�,�"2�"2�3�"7�8�9����$�$�;�T�6�$�<��/6�8�
	3��I�6�6�����'����!�#�Z�Z��7��
�

�L�$�F��9�D��v�~�b�g�g�n�n�[�$�<�5O�&P�&P��$�<�*�*�6�2�2��w�w�~�~�k�4�L��4D�&D�E�E�'-�d�|�B�'7��t�����,�,�P� �'��,�6�"�9�-�	��N�N�(�(�L��#�T�l�2��y�)�	�:�(�,8�(�)�
�N�N���/�*��<�/�/��K�/������T�3�u�:�.�.��/��4���	3��N�N� � ��s�5�z�2�2��	3��b�	3��N�N� � ��s�5�z�2�2��	3�sZ�5T4�U;�-
U6�:$U;�<V=�4U3�?)U.�.U3�6U;�;V:�)V5�5V:�=W<�)W7�7W<)F)NNNFFF)�__doc__rir,rnrkrg�apport.fileutilsr�apport.logging�
apport.report�apport.packaging_implrr5rrr?rLr|�rFr�<module>r�sF��$��	�	�
�����3��2�&44�n�Z0�Z0rF

Youez - 2016 - github.com/yon3zu
LinuXploit