Sid Gifari From Gifari Industries - BD Cyber Security Team
Home
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
websiteisolation
/
__pycache__
/
✏️
Editing: id_registry.cpython-311.pyc
� Rl�j� � �� � d Z ddlZddlZddlZddlmZ ddlmZ ej e � � Z dZ ddlZn # e $ r dZY nw xY wd� Zd� Zd � Zd � Zd� Zd� Zd � Zd� Zd� Zd� Zd� ZdS )u� Thin Python wrapper around the _lvdmap C extension (backed by liblve). Public interface is unchanged — callers (lveapi.py, lvectllib.py) continue to import and use these functions exactly as before. � N� )�domain_lve_sentry_extra)�LvdErrorz/etc/container/lvd_idsc �2 � t �t d� � �d S )Nz$_lvdmap C extension is not installed)�_lvdmapr � � �S/opt/cloudlinux/venv/lib64/python3.11/site-packages/websiteisolation/id_registry.py�_require_lvdmapr s � ����=�>�>�>� �r c � � t j | � � j }n# t $ r Y dS w xY wt j � t t |� � � � }t j � |� � sdS |S )zmReturn the registry file path for *username*, or None if the user does not exist or has no registry file.N) �pwd�getpwnam�pw_uid�KeyError�os�path�join�LVD_IDS_DIR�str�exists)�username�uidr s r �registry_path_by_usernamer "