| Server IP : 185.143.234.130 / Your IP : 185.215.232.195 Web Server : LiteSpeed System : Linux jambul.7ho.st 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64 User : renecafe ( 1327) PHP Version : 8.1.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3.9/site-packages/sepolgen/__pycache__/ |
Upload File : |
a
z
f�! � @ sb d Z ddlZddlmZ ddlmZ ddlmZ G dd� dej�ZG d d
� d
�ZG dd� d�Z dS )
zI
Classes and algorithms for matching requested access to access vectors.
� N� )�access)�objectmodel)�utilc @ s e Zd Zddd�Zdd� ZdS )�MatchNr c C s || _ || _d| _d | _d S �NF)� interface�dist�info_dir_change�__hash__)�selfr r � r
�5/usr/lib/python3.9/site-packages/sepolgen/matching.py�__init__ s zMatch.__init__c C sD z$| j | jf}|j |jf}|||�W S ttfy> t Y S 0 d S �N)r r
�AttributeError� TypeError�NotImplemented)r �other�method�a�br
r
r �_compare( s zMatch._compare)Nr )�__name__�
__module__�__qualname__r r r
r
r
r r s
r c @ sH e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dd� Z
dS )� MatchList� c C s$ g | _ g | _| j| _d| _d | _d S r )�children�bastards�DEFAULT_THRESHOLD� threshold�allow_info_dir_change�av�r r
r
r r 3 s
zMatchList.__init__c C s, t | j�r| jd S t | j�r(| jd S d S �Nr ��lenr r r$ r
r
r �best<