[erlang-questions] Right direction ?
Thu Sep 29 16:18:41 CEST 2011
On Thu, Sep 29, 2011 at 3:18 PM, David Goehrig <dave@REDACTED> wrote:
> On Wed, Sep 28, 2011 at 6:28 AM, Joe Armstrong <erlang@REDACTED> wrote:
>> 3) Some programs (actually any program) evaluates the BIF
>> erlang:load_module(Mod, Bin)
> I'm curious, this looks like one place in the entire system that I'd love to
> keep an active trace log of over time. Since we can load arbitrary byte
> code here, it is the most likely place for abuse (both good and bad).
> This makes me feel like it might be a half decent idea to implement
> http_code_server.erl that uses erlang:load_module(Mod,Bin) to directly load
> modules from remote sites, and leave code_server.erl alone for the time
> being. This way, my default erlang can be "as secure as it ever was" and I
> can introduce all sorts of horrific hacks at this layer.
> I would still want to extend the module syntax with the -location() bit, but
> have it fall back to the http_code_server for loading.
Problem is the http_code_server.erl might load some beam code Z.beam
and Z.beam calls erlang:load_module/2 - I think it is possible to
analyse the beam code to see if this is true.
> -=-=-=-=-=-=-=-=-=-=- http://blog.dloh.org/
More information about the erlang-questions