aboutsummaryrefslogtreecommitdiff
path: root/lib/darwin (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-07-11working on safetycomex1-5/+18
2015-07-11fix anti-noisecomex1-0/+66
2015-04-15fix for compiling objc-asm.S on ARM with newer Apple compilercomex1-1/+1
2015-03-03fixes for compiling on older OS Xcomex1-1/+5
2015-03-01fix stack alignmentcomex1-3/+6
2015-02-28Add extra argument to substitute_hook_functions and interpose_imports for ↵comex2-2/+7
use with unhooking. I think we'll need to explicitly record trampoline locations to avoid the possibility of stomping on someone else's stuff if the function was re-patched... Also, document substitute_hook_functions.
2015-02-28fix accidental usage of panic() from mach/mach.h instead of substitute_paniccomex2-7/+9
2015-02-28Add substituted and fix things up to use it. Still untested.comex1-0/+5
2015-02-28Rename ios-bootstrap to darwin-bootstrap; cleanup posixspawn-hook and ↵comex1-145/+0
unrestrict. Not tested yet.
2015-02-24fix armv7 syscall registers :ocomex1-1/+6
2015-02-24fix "panic" in substrate-compat.ccomex1-4/+4
2015-02-24fix arm64/armv7 ishcomex2-3/+10
2015-02-23fix i386 manual syscall, mmap return checkcomex2-5/+9
2015-02-23Fix vm_remap, of trouble with which the previous diagnosis was completely ↵comex1-10/+12
incorrect. It's actually the fact that no vm_map_server actually exists on the kernel side - even though the otherwise useless function vm_remap exists in the kernel source, and mig generates server code for it, apparently that server code isn't built or linked into the kobject table. Bizarre. Anyway, switch to mach_vm_remap, which is what vm_remap in userspace calls into.
2015-02-23remove old commentcomex1-5/+0
2015-02-23and avoid call to pthreadscomex1-1/+5
2015-02-23Redo manual syscalls, and use them for hooking.. And fix mmap, which now ↵comex4-84/+114
makes the whole thing slightly broken, because vm_remap into the middle of the shared region apparently silently does nothing.
2015-02-18various fixescomex1-3/+11
2015-02-18er, don't unnecessarily spam thread start/resume.comex1-27/+34
2015-02-18Fix hook-function:comex5-249/+414
- Thread stoppage is now complemented by sigaction to catch injected threads (sigaction is not used exclusively because the rest of the program could be trying to use sigaction itself in the meantime - this is a real thing, ask Dolphin) - mprotect is no longer used due to max_protection possibly getting in the way; instead, a copy is created and mapped onto the original.
2015-01-29...comex1-48/+2
2015-01-29a bunch of stuff that should have been committed separatelycomex2-13/+22
2015-01-29add SUBSTITUTE_DONT_STOP_THREADS for substrate compat - substrate doesn't do ↵comex1-1/+1
this, and they might not be on the main thread. though that would be gross.
2015-01-29misc. fixescomex1-1/+0
2015-01-29get rid of the unnecessary CoreFoundation dependencycomex1-40/+42
2015-01-29port some old codecomex1-1/+2
2015-01-28***yawn***comex2-10/+13
2015-01-28sortacomex1-7/+26
2015-01-28some more stuff compilescomex5-32/+196
2015-01-25right, fix cleanup. (compared to the old system, this avoids busywaiting, ↵comex2-6/+49
and properly frees the thread resources)
2015-01-25this is dumbcomex4-102/+254
2015-01-25fix substrate-compat; check in testcomex1-3/+8
2015-01-24it compiles...comex1-0/+19
2015-01-24...comex1-1/+11
2015-01-24Add function to deal with mprotecting RW and back. A bit more complex than ↵comex3-58/+115
the minimum would be... (and minor build fixes)
2015-01-21stopping other threads.comex3-22/+181
2015-01-21add substitute_strerrorcomex1-6/+10
2015-01-21pointless optimizationcomex1-27/+64
2015-01-21Some cleanup.comex3-29/+23
2015-01-21woo, inject seems to work on all platformscomex4-129/+272
2015-01-20...comex5-55/+408
2015-01-20revert THAT WHOLE THING because we can't actually use it for injectcomex2-85/+37
2015-01-20progress on injectioncomex4-30/+261
2015-01-19more reorganization - move OS X/iOS specific stuff into its own directorycomex6-0/+721