Re: Any way to get PID of kauth FILEOP auth requestor?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com <http://developer.apple.com/technotes/tn2005/tn2127.html> S+E -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware _______________________________________________ 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... At 19:59 -0800 30/10/06, Rick Mann wrote: Is there any way to get the process ID of of the process attempting to conduct a FILEOP from within the kauth listener? 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". This email sent to site_archiver@lists.apple.com
participants (1)
-
Quinn