0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-27 07:28:57 +00:00
termux-packages/root-packages/frida/frida-python-src-_frida.c.patch
Henrik Grimler 8ae810cb43
updpkg(root/frida): update to 16.0.2
With this update frida is pretty much fully functional again.

Fixes termux/termux-packages#11415
Fixes termux/termux-packages#11113
Fixes termux/termux-packages#12632

frida-discover, which was reported broken in
termux/termux-packages#10170 still does not seem to work (though error
is different than in linked issue):

$ frida-discover -p 9102
Traceback (most recent call last):
  File "/data/data/com.termux/files/usr/bin/frida-discover", line 7, in <module>
    import frida_tools.discover
ModuleNotFoundError: No module named 'frida_tools.discover'
2022-10-30 14:21:33 +01:00

22 lines
690 B
Diff

--- ./frida-python/src/_frida.c.orig 2022-10-30 12:17:34.324226166 +0100
+++ ./frida-python/src/_frida.c 2022-10-30 12:19:10.690889989 +0100
@@ -46,6 +46,8 @@
# include <crt_externs.h>
#endif
+#include <frida-selinux.h>
+
#define PyUnicode_FromUTF8String(str) PyUnicode_DecodeUTF8 (str, strlen (str), "strict")
#define MOD_INIT(name) PyMODINIT_FUNC PyInit_##name (void)
#define MOD_DEF(ob, name, doc, methods) \
@@ -1856,6 +1858,9 @@
static int
PyDeviceManager_init (PyDeviceManager * self, PyObject * args, PyObject * kw)
{
+ printf ("patching selinux policy\n");
+ frida_selinux_patch_policy ();
+
if (PyGObject_tp_init ((PyObject *) self, args, kw) < 0)
return -1;