관리-도구
편집 파일: communicate.cpython-39.pyc
a ������ye�����������������������@���s,���d�dl�Z�d�dlZdd��Zdd��Zdd��ZdS�)�����Nc�����������������C���s0���|������tj�d|���tj����t�d��d�S�)Nz %s ����)� print_help�sys�stderr�write�flush�exit)�parser�msg��r����8/usr/lib/python3.9/site-packages/sepolicy/communicate.py�usage���s���� r ���c�����������������C���s:���zt�tt�tj|���d��W�S��ty4���|�g�Y�S�0�d�S�)N�types)�list�next�sepolicy�infoZ ATTRIBUTE� StopIteration)Z attributer���r���r����expand_attribute"���s����r���c�������������� ������sr���t��t�jgt�j|�t�j|t�j��i�}|s<td|�d����f���g�}tdd��t ��fdd�|��D�]}|t |��}q\|S�)Nz*The %s type is not allowed to %s any types�,c�����������������S���s ���|�t�j�S��N)r���ZTARGET)�yr���r���r����<lambda>/��������zget_types.<locals>.<lambda>c��������������������s���t�����|�tj��S�r���)�set�issubsetr����PERMS)�x��permr���r���r���/���r���)r����searchZALLOWZSOURCEZCLASSr���� ValueError�join�map�filterr���)�srcZtclassr���ZallowsZtlist�lr���r���r���� get_types)���s����" r'���)r���r���r ���r���r'���r���r���r���r����<module>���s���