Ports and their owners

Musumeci, Antonio S Antonio.Musumeci@REDACTED
Wed Feb 17 15:11:36 CET 2010


Given:

1) Port ! {self(), {command, Data}} syntax will fail with badsig if the self() is not the port owner.
2) port_command(Port, Data) does not do this and allows any process to send messages to the port
3) ports have owners

Question:

Why is it (or am I missing how to do it) that I'm unable from the port side to find out who is sending the incoming message? It appears that there was this original intent to lock down the port but with port_command that was thrown away without the ability to be sure who's sending you the data so as it implement one's own security measures.

If this is in fact true does anyone have suggestions on securing ports?

Thanks.


--------------------------------------------------------------------------
NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law.


More information about the erlang-questions mailing list