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

Configures and launches bubblewrap More...

#include <fcntl.h>
#include <filesystem>
#include <ranges>
#include <sys/types.h>
#include <pwd.h>
#include <regex>
#include "../db/bind.hpp"
#include "../db/portal/daemon.hpp"
#include "../db/portal/dispatcher.hpp"
#include "../reserved/permissions.hpp"
#include "../reserved/unshare.hpp"
#include "../std/expected.hpp"
#include "../std/vector.hpp"
#include "../lib/log.hpp"
#include "../lib/subprocess.hpp"
#include "../lib/env.hpp"
#include "../macro.hpp"
Include dependency graph for bwrap.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ns_bwrap::ns_proxy::Id
 A pair of uid and gid mode_t values. More...
 
struct  ns_bwrap::ns_proxy::Overlay
 Bwrap's native overlay related options. More...
 
struct  ns_bwrap::ns_proxy::Logs
 Log files used by bwrap. More...
 
struct  ns_bwrap::ns_proxy::User
 The representation of a user in bubblewrap. More...
 
struct  ns_bwrap::ns_proxy::User::UserData
 
struct  ns_bwrap::bwrap_run_ret_t
 
class  ns_bwrap::Bwrap
 Manages bubblewrap (bwrap) containerization. More...
 

Namespaces

namespace  ns_bwrap
 Bubblewrap sandboxing integration.
 
namespace  ns_bwrap::ns_proxy
 Bubblewrap proxy types and user configuration.
 

Typedefs

using ns_bwrap::Permissions = ns_reserved::ns_permissions::Permissions
 
using ns_bwrap::Permission = ns_reserved::ns_permissions::Permission
 
using ns_bwrap::Unshares = ns_reserved::ns_unshare::Unshares
 
using ns_bwrap::Unshare = ns_reserved::ns_unshare::Unshare
 

Functions

Value< void > ns_bwrap::bwrap_clean (fs::path const &path_dir_work)
 Cleans up the bwrap work directory.
 
std::vector< fs::path > ns_bwrap::get_mounted_layers (fs::path const &path_dir_layers)
 Get the mounted layers object.
 

Detailed Description

Configures and launches bubblewrap

Author
Ruan Formigoni

Definition in file bwrap.hpp.