| Server IP : 46.245.81.90 / Your IP : 216.73.216.85 Web Server : Apache System : Linux server3ir.xdlhost.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64 User : gmparts ( 1037) PHP Version : 8.1.34 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib64/python3.11/site-packages/clcommon/__pycache__/ |
Upload File : |
�
��Tj,I � � � d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ d dlm Z m
Z
mZmZm
Z
d dlmZ d dlmZ d dlmZmZ dZdZd e eef d
ee fd�Zd e eef d
ee fd�Z G d
� de� � Z G d� de� � Zdeded
eeef fd�Zded
efd�Zde eef d
efd�Z ded
efd�Z!de eef d
efd�Z"de eef d
efd�Z#d5dedee
e d
e
e fd�Z$d� Z%d efd!�Z&d"� Z'd#� Z(d ed$efd%�Z)d&ed'ed
ee fd(�Z*d&ed
ee fd)�Z+d6d+�Z,d,� Z-d7d.ed/efd0�Z.d5d/efd1�Z/d5d/efd2�Z0d3� Z1d4� Z2dS )8� N)�Path)�Union�Iterable�Optional�Tuple�List)�Enum)�ClPwd)�get_rhn_systemid_value� is_ubuntuz0/opt/cpvendor/config/cl-manager-ui-settings.jsoni �path�returnc � � t j | t j t j z t j z t j z � � }n# t $ r Y dS w xY w t j t j |� � j
� � s t j |� � dS t j |t � � t j |� � S # t $ r Y t j |� � dS w xY w# t j |� � w xY w)aT
Read at most _MAX_DROP_IN_BYTES from an untrusted per-user path, refusing
symlinks (O_NOFOLLOW) and non-regular files (FIFO/device fstat guard).
O_NONBLOCK keeps the open of a planted FIFO/device from blocking.
Returns the bytes read, or None if the path is a symlink, not a regular
file, or cannot be opened/read.
N)�os�open�O_RDONLY�
O_NOFOLLOW�
O_NONBLOCK� O_CLOEXEC�OSError�stat�S_ISREG�fstat�st_mode�close�read�_MAX_DROP_IN_BYTES)r
�fds ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.41-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/clwpos_lib.py�_safe_read_bytesr s� � ��
�W�T�2�;���6���F���U�
V�
V����� � � ��t�t�������|�B�H�R�L�L�0�1�1� ��
�������� �w�r�-�.�.� �������� � � � ��
������������� ���������s<