← Back
Editing: refpolicy.cpython-312.opt-1.pyc
� �j�� � � � d dl Z d dlZd ZdZdZdZdZdZg d�Zeeeeeed�Z G d� d � Z G d � de � Z G d� d e � Zdmd�Z dnd�Zdod�Zd� Z G d� de� Z G d� de� Z G d� de� Z G d� d� Z G d� de� Z G d� de� Z G d� de� Z G d � d!e� Z G d"� d#e� Z G d$� d%e� Z G d&� d'e� Z G d(� d)e� Z G d*� d+e� Z G d,� d-e� Z G d.� d/e� Z G d0� d1e� Z! G d2� d3e� Z" G d4� d5e� Z# G d6� d7e� Z$ G d8� d9e� Z% G d:� d;e� Z& G d<� d=e� Z' G d>� d?e� Z( G d@� dAe� Z) G dB� dCe� Z* G dD� dEe� Z+ G dF� dGe� Z, G dH� dIe� Z- G dJ� dKe� Z. G dL� dMe� Z/ G dN� dOe� Z0dP� Z1 G dQ� dRe� Z2 G dS� dTe� Z3 G dU� dVe� Z4 G dW� dXe� Z5 G dY� dZe� Z6 G d[� d\e� Z7 G d]� d^e� Z8 G d_� d`e� Z9 G da� dbe� Z: G dc� dde� Z; G de� dfe� Z< G dg� dh� Z= G di� dj� Z> G dk� dl� Z?y)p� N� � � � � )�source�target�object� permission�role�destinationc � � e Zd Zdd�Zy)� PolicyBaseNc �. � d | _ d | _ d| _ y �NF)�parent�comment�gen_cil��selfr s �7/usr/lib/python3.12/site-packages/sepolgen/refpolicy.py�__init__zPolicyBase.__init__5 s � ���������� �N)�__name__� __module__�__qualname__r � r r r r 4 s � �r r c � � e Zd ZdZdd�Zd� Zd� Zd� Zd� Zd� Z d � Z d � Zd� Zd� Z d � Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zy)�Nodea� Base class objects produced from parsing the reference policy. The Node class is used as the base class for any non-leaf object produced by parsing the reference policy. This object should contain a reference to its parent (or None for a top-level object) and 0 or more children. The general idea here is to have a very simple tree structure. Children are not separated out by type. Instead the tree structure represents fairly closely the real structure of the policy statements. The object should be iterable - by default over all children but subclasses are free to provide additional iterators over a subset of their childre (see Interface for example). Nc �>