MCPcopy Create free account
hub / github.com/qilingframework/qiling / __init__

Method __init__

qiling/os/posix/kernel_proxy/__init__.py:61–71  ·  view source on GitHub ↗
(self, ql: Qiling)

Source from the content-addressed store, hash-verified

59 """
60
61 def __init__(self, ql: Qiling):
62 if sys.platform != 'linux':
63 raise QlErrorArch("KernelProxy requires a Linux host")
64
65 self.ql = ql
66 self._process: Optional[subprocess.Popen] = None
67 self._client: Optional[ProxyClient] = None
68 self._forwarded: Dict[str, int] = {} # name -> syscall_nr
69 self._reverse_table: Optional[Dict[str, int]] = None # name -> nr (built on first use)
70
71 self._start_proxy()
72
73 def _start_proxy(self):
74 """Start the proxy subprocess, connected via Unix socketpair."""

Callers

nothing calls this directly

Calls 2

_start_proxyMethod · 0.95
QlErrorArchClass · 0.90

Tested by

no test coverage detected