FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_db::ns_bind::Bind Struct Reference

Represents a single bind mount from host to guest. More...

#include <bind.hpp>

Public Attributes

size_t index
 Sequential index of this bind mount in the collection.
 
fs::path path_src
 Source path on the host system.
 
fs::path path_dst
 Destination path inside the sandbox.
 
Type type
 Access type for this bind mount.
 

Detailed Description

Represents a single bind mount from host to guest.

A Bind contains the configuration for mounting a host filesystem path into the sandbox. It specifies the source path on the host, the destination path inside the sandbox, the access type (read-only, read-write, or device), and an index for ordering within the bind mount collection.

Definition at line 42 of file bind.hpp.

Member Data Documentation

◆ index

size_t ns_db::ns_bind::Bind::index

Sequential index of this bind mount in the collection.

Used for ordering and identification of bind mounts. Automatically maintained by the Binds container to ensure consistency.

Definition at line 50 of file bind.hpp.

◆ path_dst

fs::path ns_db::ns_bind::Bind::path_dst

Destination path inside the sandbox.

The mount point where the source will be accessible within the sandboxed environment.

Definition at line 66 of file bind.hpp.

◆ path_src

fs::path ns_db::ns_bind::Bind::path_src

Source path on the host system.

The filesystem path that will be mounted into the sandbox. Can be a directory, file, device, or any accessible path.

Definition at line 58 of file bind.hpp.

◆ type

Type ns_db::ns_bind::Bind::type

Access type for this bind mount.

Determines whether the path is mounted read-only (RO), read-write (RW), or as a device (DEV). Controls the permissions available to the sandboxed application for this mount.

Definition at line 75 of file bind.hpp.


The documentation for this struct was generated from the following file: