Secure IPC question
Secure IPC question
- Subject: Secure IPC question
- From: Tim Murison <email@hidden>
- Date: Wed, 18 Feb 2009 16:44:06 -0500
- Thread-topic: Secure IPC question
Hi Guys,
I'm trying to implement a secure IPC system for my client/server software.
The IPC mechanism is mach ports. The security goal for the IPC system is
each end of the communication establishing the validity of the other.
The server establishes the validity of a client using the
mach_msg_audit_trailer_t structure to retrieve the PID of the sender and
validate its code signature.
What I want to do with the client is establish the validity of the server on
startup. So far, my code reads:
pid_t pid;
mach_port_t port;
name_t name = "com.mycompany.myportname";
bootstrap_look_up(bootstrap_port, name, &port);
pid_for_task(port, &pid);
printf("the server pid is %d\n", pid);
I had rather hoped that this would work, but after some research I realize
that it makes no sense. I'm beginning to think there is no way to do what I
want.
Any ideas?
Thanks in advance,
-Tim
***********************************************************************
This e-mail and its attachments are confidential, legally privileged, may be subject to copyright and sent solely for the attention of the addressee(s).
Any unauthorized use or disclosure is prohibited. Statements and opinions expressed in this e-mail may not represent those of Radialpoint.
Le contenu de ce courriel est confidentiel, privilégié et peut être soumis à des droits d'auteur. Il est envoyé à l'intention exclusive de son ou de ses
destinataires. Il est interdit de l'utiliser ou de le divulguer sans autorisation. Les opinions exprimées dans le présent courriel peuvent diverger de celles de Radialpoint.
_______________________________________________
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