404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.142.249.163: ~ $
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"

Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 113 B 0644
__init__.cpython-36.pyc File 113 B 0644
access.cpython-36.opt-1.pyc File 11.02 KB 0644
access.cpython-36.pyc File 11.02 KB 0644
audit.cpython-36.opt-1.pyc File 17.29 KB 0644
audit.cpython-36.pyc File 17.29 KB 0644
classperms.cpython-36.opt-1.pyc File 2.43 KB 0644
classperms.cpython-36.pyc File 2.43 KB 0644
defaults.cpython-36.opt-1.pyc File 2.19 KB 0644
defaults.cpython-36.pyc File 2.19 KB 0644
interfaces.cpython-36.opt-1.pyc File 12.25 KB 0644
interfaces.cpython-36.pyc File 12.25 KB 0644
lex.cpython-36.opt-1.pyc File 20.92 KB 0644
lex.cpython-36.pyc File 20.92 KB 0644
matching.cpython-36.opt-1.pyc File 5.95 KB 0644
matching.cpython-36.pyc File 5.95 KB 0644
module.cpython-36.opt-1.pyc File 6.95 KB 0644
module.cpython-36.pyc File 6.95 KB 0644
objectmodel.cpython-36.opt-1.pyc File 3.83 KB 0644
objectmodel.cpython-36.pyc File 3.83 KB 0644
output.cpython-36.opt-1.pyc File 3.42 KB 0644
output.cpython-36.pyc File 3.42 KB 0644
policygen.cpython-36.opt-1.pyc File 12.52 KB 0644
policygen.cpython-36.pyc File 12.57 KB 0644
refparser.cpython-36.opt-1.pyc File 28.38 KB 0644
refparser.cpython-36.pyc File 28.38 KB 0644
refpolicy.cpython-36.opt-1.pyc File 39.9 KB 0644
refpolicy.cpython-36.pyc File 39.9 KB 0644
sepolgeni18n.cpython-36.opt-1.pyc File 304 B 0644
sepolgeni18n.cpython-36.pyc File 304 B 0644
util.cpython-36.opt-1.pyc File 6.22 KB 0644
util.cpython-36.pyc File 6.22 KB 0644
yacc.cpython-36.opt-1.pyc File 52.77 KB 0644
yacc.cpython-36.pyc File 52.86 KB 0644