termux-packages/packages/strace/ipc_shmctl.c.patch
Leonid Pliushch 4d25ac40ec strace: fix crash on Android 9 (Pie)
Disables setreuid() and similar calls that are disallowed
by seccomp.
2018-10-03 22:00:27 +02:00

14 lines
436 B
Diff

diff -uNr strace-4.24/ipc_shmctl.c strace-4.24.mod/ipc_shmctl.c
--- strace-4.24/ipc_shmctl.c 2017-05-22 20:33:51.000000000 +0300
+++ strace-4.24.mod/ipc_shmctl.c 2018-10-03 01:14:05.348152107 +0300
@@ -75,7 +75,9 @@
break;
}
+#ifndef __ANDROID__
tprintf(", key=%u", (unsigned) shmid_ds.shm_perm.__key);
+#endif
printuid(", cuid=", shmid_ds.shm_perm.cuid);
printuid(", cgid=", shmid_ds.shm_perm.cgid);
tprints("}");