| Server IP : 162.19.112.25 / Your IP : 216.73.216.88 Web Server : LiteSpeed System : Linux qamar.tasjeel.ae 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : archiart ( 1428) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3.9/site-packages/sepolgen/__pycache__/ |
Upload File : |
a
B�i�. � @ sz d Z ddlmZ ddlmZ ddlmZ dd� ZG dd � d ej�Zd
d� Z G dd
� d
�Z
dd� Zdd� ZG dd� d�Z
dS )aW
Classes representing basic access.
SELinux - at the most basic level - represents access as
the 4-tuple subject (type or context), target (type or context),
object class, permission. The policy language elaborates this basic
access to facilitate more concise rules (e.g., allow rules can have multiple
source or target types - see refpolicy for more information).
This module has objects for representing the most basic access (AccessVector)
and sets of that access (AccessVectorSet). These objects are used in Madison
in a variety of ways, but they are the fundamental representation of access.
� )� refpolicy)�util� )� audit2whyc C sN t | �dkrF| d dkrFzt| dd� � W n ty@ Y dS 0 dS dS dS )z�Determine if an id is a parameter in the form $N, where N is
an integer.
Returns:
True if the id is a parameter
False if the id is not a parameter
r r �$NFT)�len�int�
ValueError)�id� r �3/usr/lib/python3.9/site-packages/sepolgen/access.py�
is_idparam'