Re: Any way to get PID of kauth FILEOP auth requestor?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Oct 31, 2006, at 02:11 , Quinn wrote: -- Rick _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... For the fileop scope, you are guaranteed that the current process is valid. Thus, you can get this using proc_selfpid. To understand this better, you might want to read the "Context" section of Technote 2127 "Kernel Authorization". <http://developer.apple.com/technotes/tn2005/tn2127.html> Thank you, Quinn. This was exactly what I was looking for. And thanks for the other email with the excellent description of the very confusing multitude of headers. That cleared things up nicely. I'm only using the process name info I get for debugging purposes. The PID is really what I wanted. This email sent to site_archiver@lists.apple.com
participants (1)
-
Rick Mann