403Webshell
Server IP : 188.151.22.197  /  Your IP : 216.73.217.74
Web Server : Apache/2.4.62 (Rocky Linux) OpenSSL/3.5.5
System : Linux wsten.se 5.14.0-687.30.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 13:09:21 UTC 2026 x86_64
User : apache ( 48)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.9/site-packages/sepolgen/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.9/site-packages/sepolgen/__pycache__/defaults.cpython-39.opt-1.pyc
a

}�iU�@sTddlZddlZGdd�de�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dS)�Nc@seZdZdd�Zddd�ZdS)�PathChoosercCs�t�|_tj�|�s(d|_d|jd<dS||_t�d�}t�d�}t|d��f}t	|�D]L\}}|�
|�rjqV|�
|�}|s�td||df��|�d	�|j|�d�<qVWd�n1s�0YdS)
Nz
(defaults)zJ/usr/share/selinux/default:/usr/share/selinux/mls:/usr/share/selinux/devel�SELINUX_DEVEL_PATHz
^\s*(?:#.+)?$z^\s*(\w+)\s*=\s*(.+?)\s*$�rz(%s:%d: line is not in key = value format��)
�dict�config�os�path�exists�config_pathname�re�compile�open�	enumerate�match�
ValueError�group)�self�pathname�ignoreZconsider�fd�lineno�line�mo�r�5/usr/lib/python3.9/site-packages/sepolgen/defaults.py�__init__s



zPathChooser.__init__rcCsp|j�|d�}|dur(td||jf��|�d�}|D]&}tj�||�}tj�|�r6|Sq6tj�|d|�S)Nz%s was not in %s�:r)	r�getrr�splitr	r
�joinr)rZtestfilenameZpathset�paths�p�targetrrr�__call__,s
zPathChooser.__call__N)r)�__name__�
__module__�__qualname__rr%rrrrrsrcCsdS)Nz/var/lib/sepolgenrrrrr�data_dir;sr)cCs
t�dS)Nz	/perm_map�r)rrrr�perm_map>sr+cCs
t�dS)Nz/interface_infor*rrrr�interface_infoAsr,cCs
t�dS)Nz/attribute_infor*rrrr�attribute_infoDsr-cCs(td�}|d�}tj�|�s$|d�}|S)N�/etc/selinux/sepolgen.confZMakefilezinclude/Makefile)rr	r
r)�chooser�resultrrr�refpolicy_makefileGs
r1cCstd�}|d�S)Nr.Zinclude)r)r/rrr�headersNsr2)
r	r
�objectrr)r+r,r-r1r2rrrr�<module>s"

Youez - 2016 - github.com/yon3zu
LinuXploit