3 -- initilaize ethereal's lua
5 -- This file is going to be executed before any other lua script.
6 -- It can be used to load libraries, disable functions and more.
10 -- Ethereal - Network traffic analyzer
11 -- By Gerald Combs <gerald@ethereal.com>
12 -- Copyright 1998 Gerald Combs
14 -- This program is free software; you can redistribute it and/or
15 -- modify it under the terms of the GNU General Public License
16 -- as published by the Free Software Foundation; either version 2
17 -- of the License, or (at your option) any later version.
19 -- This program is distributed in the hope that it will be useful,
20 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
21 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 -- GNU General Public License for more details.
24 -- You should have received a copy of the GNU General Public License
25 -- along with this program; if not, write to the Free Software
26 -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 -- If lua is to be disabled even if it was installed uncomment the following
31 -- disable_lua = true; do return end;
34 -- If set and we are running with special privileges this setting
35 -- tells whether scripts other than this one are to be run.
36 run_user_scripts_when_superuser = false
38 -- disable potentialy harmful lua functions when running superuser
39 if running_superuser then
40 dofile = function() error("dofile has been disabled") end
41 loadfile = function() error("loadfile has been disabled") end
42 loadlib = function() error("loadlib has been disabled") end
43 require = function() error("require has been disabled") end
49 -- to avoid output to stdout which can caause problems lua's print ()
50 -- has been suppresed so that it yields an error.
51 -- have print() call info() instead.