HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/apparmor/rule/__pycache__/abi.cpython-310.pyc
o

%`b	�@s^ddlmZddlmZddlmZmZddlmZe�Z	Gdd�de�Z
Gdd�de�Zd	S)
�)�RE_ABI)�AppArmorBug)�IncludeRule�IncludeRuleset)�init_translationcsHeZdZdZdZ		d�fdd�	Zedd	��Zddd�Zd
d�Z	�Z
S)�AbiRulez+Class to handle and store a single abi rule�abiF�Nc		
s8tt|�j||||||||d�|rtd|jj��dS)N)�audit�deny�
allow_keyword�comment�	log_eventz*Attempt to use %s rule with if exists flag)�superr�__init__r�	__class__�__name__)	�self�path�ifexists�ismagicr
rrr
r�r��3/usr/lib/python3/dist-packages/apparmor/rule/abi.pyrs��zAbiRule.__init__cCs
t�|�S)N)r�search)�cls�raw_rulerrr�_match*s
zAbiRule._matchrcCs:d|}|jrd||j|j|jfSd||j|j|jfS)z)return rule (in clean/default formatting)z  z%s%s <%s>,%sz%s%s "%s",%s)r�	rule_namerr
)r�depth�spacerrr�	get_clean.szAbiRule.get_cleancCstd�|��gS)N�Abi)�_r!)rrrr�logprof_header_localvars8s�z AbiRule.logprof_header_localvars)FFFr	N)r)r�
__module__�__qualname__�__doc__rr�classmethodrr!r$�
__classcell__rrrrrs�


rc@seZdZdZdS)�
AbiRulesetz3Class to handle and store a collection of abi rulesN)rr%r&r'rrrrr*>sr*N)�apparmor.regexr�apparmor.commonr�apparmor.rule.includerr�apparmor.translationsrr#rr*rrrr�<module>s%