§
�»jQ ã óŒ — d Z ddlZddlZddlZddlZddlZddlmZ ej e ¦ « Z
dZd„ ZdZ
d„ Zd„ Zd „ Zdd
„Zd„ ZdS )
z¤
CLI helper utilities for CageFS user commands.
Provides functions for:
- Re-entering CageFS environment
- Calling commands via proxyexec for privilege escalation
é N)Úclcagefsz/var/.cagefs/.cagefs.tokenc óÞ — t t d¦ « 5 } | ¦ « ¦ « cddd¦ « S # 1 swxY w Y dS # t t
f$ r Y dS w xY w)zv
Read the CageFS token from the token file.
Returns:
str: The CageFS token, or None if not found
ÚrN)ÚopenÚCAGEFS_TOKEN_PATHÚreadÚstripÚIOErrorÚOSError)Úfs úCopt/cloudlinux/venv/lib/python3.11/site-packages/clcagefslib/cli.pyÚget_cagefs_tokenr sµ € ðÝ
Õ# SÑ
)Ô
)ð $¨QØ—6’6‘8”8—>’>Ñ#Ô#ð $ð $ð $ð $ñ $ô $ð $ð $ð $ð $ð $ð $øøøð $ð $ð $ð $ð $ð $øå•WÐð ð ð Øˆtˆtðøøøs3 ‚A —&A
½A Á
AÁA ÁAÁA ÁA,Á+A,ú/usr/sbin/proxyexecc óø — t j ¦ « } t j d| z ¦ « }| d¦ « r|dt d¦ « … }|t
k S # t t f$ r Y dS w xY w)zÐ
Verify that the parent process is the proxyexec daemon
by checking /proc/