FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
relocate.hpp File Reference

Used to copy execve the flatimage program. More...

#include <expected>
#include <string>
#include <system_error>
#include <filesystem>
#include <print>
#include "../macro.hpp"
#include "../lib/env.hpp"
#include "../lib/elf.hpp"
#include "../db/db.hpp"
#include "../std/expected.hpp"
#include "../config.hpp"
Include dependency graph for relocate.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ns_relocate
 Binary relocation and extraction utilities.
 

Functions

Value< void > ns_relocate::anonymous_namespace{relocate.hpp}::relocate_impl (char **argv, uint32_t offset, fs::path const &path_file_self)
 Relocate the binary (by copying it) from the image.
 
Value< void > ns_relocate::relocate (char **argv, int32_t offset)
 Calls the implementation of relocate.
 

Variables

constexpr std::array< const char *, 403 > const ns_relocate::anonymous_namespace{relocate.hpp}::arr_busybox_applet
 

Detailed Description

Used to copy execve the flatimage program.

Author
Ruan Formigoni

Definition in file relocate.hpp.