X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/7ddcb079202367355dddccdfa4318e57d50318be..13f56ec4e58bf8687e2a68032c093c0213dd519b:/bsd/kern/mach_process.c diff --git a/bsd/kern/mach_process.c b/bsd/kern/mach_process.c index 5294122ff..7ec55c799 100644 --- a/bsd/kern/mach_process.c +++ b/bsd/kern/mach_process.c @@ -325,14 +325,10 @@ ptrace(struct proc *p, struct ptrace_args *uap, int32_t *retval) goto out; } + /* force use of Mach SPIs (and task_for_pid security checks) to adjust PC */ if (uap->addr != (user_addr_t)1) { -#if defined(ppc) -#define ALIGNED(addr,size) (((unsigned)(addr)&((size)-1))==0) - if (!ALIGNED((int)uap->addr, sizeof(int))) - return (ERESTART); -#undef ALIGNED -#endif - thread_setentrypoint(th_act, uap->addr); + error = ENOTSUP; + goto out; } if ((unsigned)uap->data >= NSIG) {