Mini Shell
�
�o�iE � �� � d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dlm Z d dl
Z
d dlmZ dZ
e
j dd� � Z G d � d
ej � � Ze G d� d� � � � Ze G d
� d� � � � Z G d� d� � Zdefd�Z edde edej �� � �� � gZdee fd�Zd� Zd� Zedk r ej e� � � � dS dS )� N)� dataclass)�Path)�Callable)�DEFAULT_FLAGS_STORAGE_PATHz/etc/cagefs/enabled_features�feature_managerz/var/log/cloudlinux/cagefs.logc �N � e Zd ZdZ ej � � Z ej � � ZdS )�FlagBehaviorz�
Defines the behavior of a CloudLinux Server Flag
based on the presence of a file. The existence of this flag
not only indicates that the 'feature' is enabled
but could also mean it is explicitly disabled by creating the file.
N)�__name__�
__module__�__qualname__�__doc__�enum�auto�ENABLE_ON_PRESENT�DISABLE_ON_PRESENT� � �c/builddir/build/BUILDROOT/cagefs-7.6.32-1.el8.cloudlinux.x86_64/usr/share/cagefs/feature_manager.pyr r s8 � � � � � �� � "�� ����"�������r r c �D � e Zd ZU dZeed<