FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_cmd::ns_unshare Namespace Reference

Unshare namespace options command implementation. More...

Functions

Value< void > set (fs::path const &path_file_binary, std::set< ns_reserved::ns_unshare::Unshare > const &unshares)
 Sets the unshare options (replaces existing)
 
Value< void > add (fs::path const &path_file_binary, std::set< ns_reserved::ns_unshare::Unshare > const &unshares)
 Adds unshare options to existing configuration.
 
Value< void > del (fs::path const &path_file_binary, std::set< ns_reserved::ns_unshare::Unshare > const &unshares)
 Removes unshare options from existing configuration.
 
Value< void > clear (fs::path const &path_file_binary)
 Clears all unshare options.
 
Value< void > list (fs::path const &path_file_binary)
 Lists all enabled unshare options.
 

Detailed Description

Unshare namespace options command implementation.

Implements the fim-unshare command for managing namespace unsharing options. Provides operations to set, add, clear, and list unshare options such as user, ipc, pid, net, uts, and cgroup namespaces. Persists configurations to reserved space.

Function Documentation

◆ add()

Value< void > ns_cmd::ns_unshare::add ( fs::path const & path_file_binary,
std::set< ns_reserved::ns_unshare::Unshare > const & unshares )
inlinenodiscard

Adds unshare options to existing configuration.

Parameters
path_file_binaryPath to the flatimage binary
unsharesSet of unshare options to add
Returns
Value<void> Nothing on success or the respective error

Definition at line 57 of file unshare.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

Value< void > ns_cmd::ns_unshare::clear ( fs::path const & path_file_binary)
inlinenodiscard

Clears all unshare options.

Parameters
path_file_binaryPath to the flatimage binary
Returns
Value<void> Nothing on success or the respective error

Definition at line 88 of file unshare.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ del()

Value< void > ns_cmd::ns_unshare::del ( fs::path const & path_file_binary,
std::set< ns_reserved::ns_unshare::Unshare > const & unshares )
inlinenodiscard

Removes unshare options from existing configuration.

Parameters
path_file_binaryPath to the flatimage binary
unsharesSet of unshare options to remove
Returns
Value<void> Nothing on success or the respective error

Definition at line 73 of file unshare.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ list()

Value< void > ns_cmd::ns_unshare::list ( fs::path const & path_file_binary)
inlinenodiscard

Lists all enabled unshare options.

Parameters
path_file_binaryPath to the flatimage binary
Returns
Value<void> Nothing on success or the respective error

Definition at line 101 of file unshare.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set()

Value< void > ns_cmd::ns_unshare::set ( fs::path const & path_file_binary,
std::set< ns_reserved::ns_unshare::Unshare > const & unshares )
inlinenodiscard

Sets the unshare options (replaces existing)

Parameters
path_file_binaryPath to the flatimage binary
unsharesSet of unshare options to enable
Returns
Value<void> Nothing on success or the respective error

Definition at line 41 of file unshare.hpp.

Here is the call graph for this function:
Here is the caller graph for this function: