Restricted shell in Elixir

What is the equivalent of erl -stdlib restricted_shell <module> in Elixir?

I managed to pass these options to the erlang VM but it seems to have no effects in iex: the shell does not get restricted.

iex --erl "-stdlib restricted_shell 'MyModule'"

4 Likes