VulnCheck.Entrypoints.OtpApp (VulnCheck v1.0.1)

Copy Markdown View Source

Computes which OTP applications start at boot and their application callback modules, from the .app resource files of the build.

Starting from the project's root applications, applications and included_applications are followed transitively. Optional applications only count when they are actually present in the build.

Summary

Functions

Walks the application tree of a workspace.

Maps OTP application names to workspace packages.

Types

result()

@type result() :: %{
  started: [String.t()],
  app_modules: %{required(String.t()) => String.t()},
  root_has_mod: boolean(),
  root_files_known: boolean(),
  boot_tree_known: boolean(),
  missing_packages: [{String.t(), String.t()}],
  notes: [String.t()]
}

Functions

analyze(workspace)

@spec analyze(VulnCheck.Types.Workspace.t()) :: result()

Walks the application tree of a workspace.

app_modules maps every started application with a mod entry to its callback module.

packages_by_app(workspace)

@spec packages_by_app(VulnCheck.Types.Workspace.t()) :: %{
  required(String.t()) => VulnCheck.Types.Package.t()
}

Maps OTP application names to workspace packages.