News for hackers. Stuff that matters.
Re:Termux and Android 10 by shockinglytrue on Monday May 18, 2020 @01:42PM (#23225712)
It's still possible, you just have to dance around a little more

In one project we work around this by shipping a tiny wrapper in the APK to exec that then uses dlopen() on the target, which is now built as a library.

Pretty sure a generic hack could be made to run unmodified executables this way. Certainly in the security community userland ELF loaders are very old news, even X11R6 had its own at one point

Re:Termux and Android 10 by AshamedCaptain on Monday May 18, 2020 @03:02PM (#23226941)
And the next release Android uses noexec and therefore you can't even mmap(...PROT_EXEC) the binary. So you now have yo copy the binaries to RAM by yourself on exec().

And then at some point you realize that, like Cygwin, you have built a system where fork() fails randomly by design.

And then Google blacklists both fork and exec.

Re:Termux and Android 10 by shockinglytrue on Monday May 18, 2020 @05:37PM (#23228669)
Not sure why you're being downvoted, this unfortunately all makes sense