From: Christian Szegedy <szegedy@t-online.de>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Sandboxing in ocaml
Date: Sun, 20 Mar 2005 23:19:06 +0100 [thread overview]
Message-ID: <423DF6DA.3090800@t-online.de> (raw)
In-Reply-To: <20050320.085649.30145338.garrigue@math.nagoya-u.ac.jp>
Jacques Garrigue wrote:
>>Is this possible in ocaml to dynamically load some (bytcode) OCaml file
>>and run it in a safe environment, that is only using a small subset of
>>selected functions instead of the whole Pervasives?
>>
>>
>
>This is the intent of Dynlink.allow_only.
>Not however that allowing is done on a unit base, so if you want to
>allow only some functions in a unit, you must create a new one
>containing only those, and compile your file against those (otherwise you
>won't be able to load it).
>This is the way MMM applets are made safe.
>
>
Excellent! This sounds exactly what I want. Can I forbid
the Pervasives unit while linking the applet?
Thanks a lot, Christian
next prev parent reply other threads:[~2005-03-20 22:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-19 23:11 Christian Szegedy
2005-03-19 23:56 ` [Caml-list] " Jacques Garrigue
2005-03-20 22:19 ` Christian Szegedy [this message]
2005-03-20 23:24 ` Jacques Garrigue
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=423DF6DA.3090800@t-online.de \
--to=szegedy@t-online.de \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox