RE: IPC between daemon -> non root app?
RE: IPC between daemon -> non root app?
- Subject: RE: IPC between daemon -> non root app?
- From: Philip Lukidis <email@hidden>
- Date: Tue, 15 Nov 2005 11:49:33 -0500
Would CFNotificationCenter work? Or CFSocket? I'll read up about these
types.
thanks,
Philip Lukidis
> -----Original Message-----
> From: Stephane Sudre [mailto:email@hidden]
> Sent: Tuesday, November 15, 2005 11:41 AM
> To: Philip Lukidis
> Cc: 'email@hidden'
> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden