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

Manages the unshare namespace options reserved space. More...

#include <map>
#include <cstring>
#include <set>
#include <ranges>
#include "reserved.hpp"
#include "../std/enum.hpp"
#include "../std/expected.hpp"
Include dependency graph for unshare.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ns_reserved::ns_unshare::Unshares
 Manages FlatImage unshare options stored in reserved space. More...
 

Namespaces

namespace  ns_reserved::ns_unshare
 Unshare namespace options bitfield management in reserved space.
 
namespace  ns_reserved
 Management of ELF binary reserved space for configuration storage.
 

Typedefs

using ns_reserved::ns_unshare::Bits = uint16_t
 

Functions

 ns_reserved::ns_unshare::ENUM (Unshare, ALL, USER, IPC, PID, NET, UTS, CGROUP)
 
Value< void > ns_reserved::ns_unshare::bit_set (Bits &bits, Unshare const &unshare, bool value) noexcept
 Sets a bit unshare option with the target value.
 
std::set< std::string > ns_reserved::ns_unshare::to_strings (Bits const &bits) noexcept
 Creates a set of lowercase string unshare option representations.
 
Value< void > ns_reserved::ns_unshare::write (fs::path const &path_file_binary, Bits const &bits) noexcept
 Write the Bits struct to the given binary.
 
Value< Bits > ns_reserved::ns_unshare::read (fs::path const &path_file_binary) noexcept
 Read the Bits struct from the given binary.
 

Variables

std::map< Unshare, Bits > const ns_reserved::ns_unshare::unshare_mask
 

Detailed Description

Manages the unshare namespace options reserved space.

Author
Ruan Formigoni

Definition in file unshare.hpp.