HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/lib/python3.6/site-packages/mockbuild/plugins/__pycache__/pesign.cpython-36.pyc
3

$S,d��@sbdZddlmZmZddlZdZe�dd��Zdd�Zd	d
�Z	dd�Z
d
d�ZGdd�de�Z
dS)zQ
mock plugin to make sure pesign and mockbuild users have the right uid and
gid.
�)�getLog�traceLogNz1.1cCst|||�dS)z hello N)�Pesign)�plugins�conf�	buildroot�r�/usr/lib/python3.6/pesign.py�initsr
cCs8tjjddd|fgddd�}|jd�}|d|d	fS)
z get a uid for a user name �getentZpasswdz%s�T)�returnOutput�printOutput�:��)�	mockbuild�util�do�split)�name�outputrrr	�getuids

rcCs,tjjddd|fgddd�}|jd�dS)	z get a gid for a group name r�groupz%srT)r
rrr)rrrr)rrrrr	�getgids
rcCsBt�jd||f�tjjddd|fdd|fd|fg�dS)z create a group with a gid zcreating group %s with gid %sZgroupaddz-gz%sz-RN)r�inforrr)r�gid�rootdirrrr	�newgroup#s


rc
CsLt�jd||f�tjjddd|fdd|fdd|fd|fg�dS)z create a user with a uid zcreating user %s with uid %sZuseraddz-uz%sz-gz-RN)rrrrr)r�uidrrrrr	�newuser,s


r c@s,eZdZdZe�dd��Ze�dd��ZdS)rz% Creates some stuff in our mock root cCs:||_||_|j|_|j|_i|_i|_|jd|j�dS)a# Effectively we're doing:
            getent group pesign >/dev/null || groupadd -r pesign
            getent passwd pesign >/dev/null ||                     useradd -r -g pesign -d /var/run/pesign -s /sbin/nologin                     -c "Group for the pesign signing daemon" pesign
        ZpostinitN)r�pesign_opts�config�state�users�groupsZadd_hook�_pesignPostInitHook)�selfrrrrrr	�__init__8s	zPesign.__init__cCs�x.|jdD] }t|�\}}|||g|j|<qWx(|jdD]}t|�}||g|j|<q<W|jj�}x"|jj�D]\}}t|||�qpWx&|jj�D]\}}}t	||||�q�WdS)z find our uid and gid lists r$r%N)
r!rr$rr%rZmake_chroot_path�valuesrr )r'�userrrrrrrrr	r&Is
zPesign._pesignPostInitHookN)�__name__�
__module__�__qualname__�__doc__rr(r&rrrr	r5sr)r.Zmockbuild.trace_decoratorrrZmockbuild.utilrZrequires_api_versionr
rrrr �objectrrrrr	�<module>
s