site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Would CFNotificationCenter work? Or CFSocket? I'll read up about these types. thanks, Philip Lukidis
-----Original Message----- From: Stephane Sudre [mailto:ssudre@intego.com] Sent: Tuesday, November 15, 2005 11:41 AM To: Philip Lukidis Cc: 'darwin-dev@lists.apple.com' Subject: Re: IPC between daemon -> non root app?
On 15 Nov 2005, at 17:29, Philip Lukidis wrote:
Hello, I'm having problems establishing IPC communication between my test daemon and a non root app (which for now is a plugin). The means of communication is CFMessagePort. My app has no problem sending data to the daemon, but my daemon cannot open a remote port which the application created. When I run the daemon under my username (and is thus not run under root), the daemon can open the remote port which my app created with no problems, and send notifications.
Does anyone have any idea what is behind this? Is it a matter of permissions? How could this be overcome?
It's the usual "we do not share the same context problem".
AFAIK, you can not send a CFMessagePort from a (bootstrap) daemon to a user land process.
Distributed notifications may be a solution (be sure to allow the notification to walk through all user sessions), named pipes too or socket probably.
_______________________________________________ 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... This email sent to site_archiver@lists.apple.com