Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Feb 2010 18:02:35 -0700
From:      Chad Perrin <perrin@apotheon.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: using secure memory from a script
Message-ID:  <20100226010235.GA35535@guilt.hydra>
In-Reply-To: <8E22028B-1FF9-4750-8CD1-FA8ED669A156@mac.com>
References:  <20100219235957.GA94878@guilt.hydra> <8E22028B-1FF9-4750-8CD1-FA8ED669A156@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--fdj2RfSjLxBAspz7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Feb 25, 2010 at 04:22:29PM -0800, Chuck Swiger wrote:
>=20
> Well, Ruby supports calling C functions, so you can invoke mlock() that w=
ay:
>=20
>   http://onlamp.com/pub/a/onlamp/2004/11/18/extending_ruby.html
>=20
> ...but you also have to do so as root.  It might be more sane to setup en=
crypted swapping:
>=20
>   http://www.freebsd.org/doc/handbook/swap-encrypting.html

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.

--=20
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]

--fdj2RfSjLxBAspz7
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAkuHHasACgkQ9mn/Pj01uKWa6QCg9JBYaVfYaTQyr1DdwngITMAy
i5gAnR8XNKVCURgcXTR988n/Zh/dXNly
=33Xg
-----END PGP SIGNATURE-----

--fdj2RfSjLxBAspz7--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100226010235.GA35535>