From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 9402CBC48 for ; Tue, 5 Apr 2005 23:03:12 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j35L3CQT005848 for ; Tue, 5 Apr 2005 23:03:12 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA18193 for ; Tue, 5 Apr 2005 23:03:11 +0200 (MET DST) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j35L39g4031043 for ; Tue, 5 Apr 2005 23:03:11 +0200 Received: from localhost (suiren [130.54.16.25]) by kurims.kurims.kyoto-u.ac.jp (8.13.1/8.13.1) with ESMTP id j35L38vS021077; Wed, 6 Apr 2005 06:03:08 +0900 (JST) Date: Wed, 06 Apr 2005 06:02:58 +0900 (JST) Message-Id: <20050406.060258.84923095.garrigue@math.nagoya-u.ac.jp> To: sejourne_kevin@yahoo.fr Cc: caml-list@inria.fr Subject: Re: [Caml-list] Securely loading and running untrusted modules From: Jacques Garrigue In-Reply-To: <4252FBF5.1030509@yahoo.fr> References: <20050405141744.GA11816@furbychan.cocan.org> <20050405.233631.126985691.garrigue@math.nagoya-u.ac.jp> <4252FBF5.1030509@yahoo.fr> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 4252FD10.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4252FD0D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 untrusted:01 struct:01 pervasives:01 struct:01 pervasives:01 endline:01 ocamlc:01 securely:98 ....:98 dynamically:01 modules:01 jacques:01 jacques:01 garrigue:03 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: From: sejourne_kevin > I can't find the way to use 'nopervasives' correctly, here is my test: > test.ml : > ---------------- > struct Pervasives = struct > (* Here the code steal from pervasives.ml *) > end;; > open Pervasives;; > print_endline "hello world";; > ---------------- > [20:55:58 ~] ocamlc -nopervasives -o test test.ml > [20:56:25 ~] ./test > hello world > [20:56:28 ~] > > strange.... Why? If you copy all pervasives.ml, then you have access to all its functionality. The point is that you wouldn't be able to load this code dynamically in safe mode. Jacques Garrigue