qilingframework / qiling

A True Instrumentable Binary Emulation Framework
https://qiling.io
GNU General Public License v2.0
5.06k stars 737 forks source link

Default syscalls not implemented in Posix OS #1458

Open ytournier opened 6 months ago

ytournier commented 6 months ago

Using the Android binaries provided in the rootfs, Qiling stops because of tgkill and sigaltstack syscalls are not implemented.

The code snippet below must be added in the signal.py file which is defined for the Posix OS:

def ql_syscall_sigaltstack(ql: Qiling, ss: int, oss: int):
    return 0

def ql_syscall_tgkill(ql: Qiling, tgid: int, tid: int, sig: int):
    return 0