site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Le 12 janv. 09 à 18:54, Gary Fung a écrit : task_t task = MACH_PORT_NULL; struct task_basic_info tinf; if(task_for_pid(mach_task_self(), pid, &task) == KERN_SUCCESS) { ... //not reached } There is note about it here (at the end of the page) : http://developer.apple.com/releasenotes/Security/RN-CodeSigning/ and you can also see man taskgated for other infos. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Tried to retrieve task_info_t by using task_for_pid but the following code does not equate to true mach_task_self returns non null value so that should be ok. But task_for_pid does not return anything for &task. Any ideas? I've iterated through all the pids currently running, same result. Ran it on Leopard. May trying to see what the returned value is may be a good starting point. Is all mach functions return error code, it's to help to find what append. That said, is probably a permission issue, as task_for_pid is restricted. This email sent to site_archiver@lists.apple.com