Index: wireshark-1.4.6/epan/wslua/template-init.lua =================================================================== --- wireshark-1.4.6/epan/wslua/template-init.lua +++ wireshark-1.4.6/epan/wslua/template-init.lua 2011-10-12 13:06:25.952043246 +0200 @@ -40,12 +40,12 @@ -- disable potentialy harmful lua functions when running superuser if running_superuser then local disabled_lib = {} - setmetatable(disabled_lib,{ __index = function() error("this package has been disabled") end } ); + setmetatable(disabled_lib,{ __index = function() error("Wireshark is running as root, this is dangerous. This package has been disabled, because it is potentially harmful when running as root") end } ); - dofile = function() error("dofile has been disabled") end - loadfile = function() error("loadfile has been disabled") end - loadlib = function() error("loadlib has been disabled") end - require = function() error("require has been disabled") end + dofile = function() error("Wireshark is running as root, this is dangerous. The lua function dofile has been disabled, because it is potentially harmful when running as root") end + loadfile = function() error("Wireshark is running as root, this is dangerous. The lua function loadfile has been disabled, because it is potentially harmful when running as root") end + loadlib = function() error("Wireshark is running as root, this is dangerous. The lua function loadlib has been disabled, because it is potentially harmful when running as root") end + require = function() error("Wireshark is running as root, this is dangerous. The lua function require has been disabled, because it is potentially harmful when running as root") end os = disabled_lib io = disabled_lib file = disabled_lib