| Server IP : 172.67.201.108 / Your IP : 216.73.217.93 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib64/python3.9/site-packages/setools/checker/__pycache__/ |
Upload File : |
a
��c�
� @ sX d dl Z d dlmZ ddlmZmZ ddlmZ ddlm Z dZ
d ZG d
d� de�ZdS )� N)�List� )�InvalidType�InvalidCheckValue� )�
CheckerModule)�config_bool_value�attr�
missing_okc sx e Zd ZdZdZeeef�Zdd�� fdd�Z e
dd� �Zejd d� �Ze
d
d� �Z
e
jdd� �Z
ed�d
d�Z� ZS )�
EmptyTypeAttrz7Checker module for asserting a type attribute is empty.Zempty_typeattrN)�returnc sJ t � �|||� t�t�| _d | _d| _d| _|� t
�| _|� t�| _
d S )NF)�super�__init__�loggingZ getLogger�__name__�log�_attr�_missing_ok�_pass_by_missing�get�MISSINOK_OPTr
�ATTR_OPTr )�self�policy� checknameZconfig�� __class__� �?/usr/lib64/python3.9/site-packages/setools/checker/emptyattr.pyr s zEmptyTypeAttr.__init__c C s | j S �N)r �r r r r r '