AlkantarClanX12
Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/clconfigure/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/clconfigure/__pycache__/cagefs.cpython-311.pyc |
� ".g= � �� � d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZm Z d dl mZ dZd� Z e e d� � d � � � � � Ze e d � � d� � � � � Zd� ZdS ) � N)�Feature)�is_panel_feature_supported)�run�task)�install_packagez/usr/sbin/cagefsctlc �F � � t j � � � � fd�� � }|S )Nc �� �� t t j � � st j d� � d S t j � t � � st j d� � d S �| i |��S )Nz.Feature 'CageFS' is not supported. Skipping...z$CageFS is not installed. Skipping...) r r �CAGEFS�logging�debug�os�path�exists� CAGEFSCTL)�args�kwargs�funcs ��py/clconfigure/cagefs.py� decoratorz'_skip_without_cagefs.<locals>.decorator sl �� �)�'�.�9�9� ��M�J�K�K�K��F��w�~�~�i�(�(� ��M�@�A�A�A��F��t�T�$�V�$�$�$� )� functools�wraps)r r s ` r �_skip_without_cagefsr s9 �� ��_�T��� %� %� %� %� �� %� �r zCleaning CageFS environmentc �� � t t j � � rt j d� � d S t t dg� � } | j dk r"t j d| j | j � � d S d S )Nz%LVE feature is supported. Skipping...z--clean-without-lve-environmentr zAUnable to clean non-LVE CageFS enviroment. stdout: %s, stderr: %s)r r �LVEr r r r �exitcode�warning�stdout�stderr)�results r �$clean_cagefs_without_lve_environmentr! ! s~ � � "�'�+�.�.� �� �=�>�>�>��� �)�>�?� @� @�F� ��!�����[�� �v�}� 6� 6� 6� 6� 6� �r zReconfiguring CageFSc �D � t dd�� � t � � d S )N�cagefsT)� reinstall)r �_rebuild_apache_directadmin� r r �reconfigure_cagefsr'