[erlang-questions] How to exchange sensitive data with ports?

Richard Andrews bflatmaj7th@REDACTED
Sat Aug 8 15:26:51 CEST 2009


On Sat, Aug 8, 2009 at 9:35 PM, Elena Garrulo<egarrulo@REDACTED> wrote:
> 2009/8/8 Richard Andrews <bflatmaj7th@REDACTED>:
>> You can use a linked-in driver. Write the driver in C and load it as a
>> .so or .dll into the erlang node that needs to access the smart card
>> libs. The data doesn't leave the process space - but it must get there
>> somehow.
>
> What if C calls are time consuming? Does whole Erlang VM stop until
> the C procedure returns?

IIRC the "control" style driver would block but the IO style driver
model would not. I think this requires that there is another thread
somewhere which can issue a callback into erlang with a result. I've
never implemented one of these.

>> Of course root can watch usually any data in any process (SELinux
>> might prevent that).
>>
>
> And user? Can a user process watch another (same) user process?

I don't think this is possible.


More information about the erlang-questions mailing list