Uname : Linux serv1.rebootns.com 5.14.0-570.62.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 10:10:59 EST 2025 x86_64
Soft : LiteSpeed
Ip : 139.99.125.122
Port : 443
~
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
clwizard
/
modules
/
__pycache__
[ HOME ]
Exec
Submit
cagefs.cpython-311.pyc
� ���}��� � � d dl Z d dlmZ d dlmZ d dlmZ d dlmZm Z d dl mZ d dlm Z dd lmZ G d � de� � ZdS )� N)�Feature)�ExternalProgramFailed)�check_cagefs_initialized)�CageFs�CageFsException)�MODULES_LOGS_DIR)�InstallationFailedException� )�WizardInstallerc � � � e Zd Zej � ed� � Zej Z � fd�Zd� Zd� Z d� Zd� Zd� Zd� Zed � � � Zd � Z� xZS )�CagefsInstallerz cagefs.logc �| �� t � � � � � t | j �� � | _ d S )N)�logger)�super�__init__r � app_logger�cgfs)�self� __class__s ��py/clwizard/modules/cagefs.pyr zCagefsInstaller.__init__ s1 �� � ���������$�/�2�2�2�� � � � c �� � | j � � � }| j � � � }| j � d|� � |dk r| j � � � dS dS )z` Enable all users statuses and after it toggle to initial mode :return: z.Cagefs users status was updated to enabled: %s�Disable AllN)r � get_user_mode�set_enabled_moder �info�toggle_user_mode)r �initial_mode�outs r �_enable_existing_usersz&CagefsInstaller._enable_existing_users sp � � �y�.�.�0�0���i�(�(�*�*������M�s�S�S�S��=�(�(��I�&�&�(�(�(�(�(� )�(r c � � | j � � � }| j � d|� � |dk rO| j � d� � | j � � � | j � d� � d S d S )NzCurrent mode is: %sr zTry to set mode to Enable allzMode was toggled to Enable all)r r r r r )r �modes r �_set_enabled_modez!CagefsInstaller._set_enabled_mode'