View Source Dune.Allowlist.Default (dune v0.3.8)

The default Dune.Allowlist module to be used to allow or restrict functions and macros that can be safely executed.

Examples

iex> Dune.Allowlist.Default.fun_status(Kernel, :+, 2)
:allowed

iex> Dune.Allowlist.Default.fun_status(String, :to_atom, 1)
:restricted

iex> Dune.Allowlist.Default.fun_status(Atom, :to_string, 1)
{:shimmed, Dune.Shims.Atom, :to_string}

iex> Dune.Allowlist.Default.fun_status(Kernel, :foo, 1)
:undefined_function

iex> Dune.Allowlist.Default.fun_status(Bar, :foo, 1)
:undefined_module

iex> Dune.Allowlist.Default.fun_status(Kernel.SpecialForms, :quote, 2)
:restricted

Allowed modules / functions

Summary

Functions

Link to this function

fun_status(module, fun_name, arity)

View Source

Implements Dune.Allowlist.fun_status/3