using secure memory from a script

Chad Perrin perrin at
Fri Feb 26 01:11:43 UTC 2010

On Thu, Feb 25, 2010 at 04:22:29PM -0800, Chuck Swiger wrote:
> Well, Ruby supports calling C functions, so you can invoke mlock() that way:
> ...but you also have to do so as root.  It might be more sane to setup encrypted swapping:

Thanks for pointing out a couple of options.  I'll look into them.  I've
also discovered that there appears to be a way to lock memory natively in
Ruby, though, I haven't checked into that in too much depth yet.  I will
weigh my options carefully.

Chad Perrin [ original content licensed OWL: ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list