#include <attach.hpp>
|
| Attach (const ContainerConfig &config, const std::vector< std::string > &argv, const uid_t uid, const gid_t gid, const std::string &ttyPath, const std::vector< gid_t > &supplementaryGids, const int capsToKeep, const std::string &workDirInContainer, const std::vector< std::string > &envToKeep, const std::vector< std::pair< std::string, std::string >> &envToSet, const LoggerConfig &logger) |
| Runs call in the container's context. More...
|
|
| ~Attach () |
|
void | execute () |
|
int | getExitCode () const |
|
lxcpp::Attach::Attach |
( |
const ContainerConfig & |
config, |
|
|
const std::vector< std::string > & |
argv, |
|
|
const uid_t |
uid, |
|
|
const gid_t |
gid, |
|
|
const std::string & |
ttyPath, |
|
|
const std::vector< gid_t > & |
supplementaryGids, |
|
|
const int |
capsToKeep, |
|
|
const std::string & |
workDirInContainer, |
|
|
const std::vector< std::string > & |
envToKeep, |
|
|
const std::vector< std::pair< std::string, std::string >> & |
envToSet, |
|
|
const LoggerConfig & |
logger |
|
) |
| |
Runs call in the container's context.
Object attach should be used immediately after creation. It will not be stored for future use like most other commands.
- Parameters
-
config | config of a container to which it attaches |
argv | path and arguments for the user's executable |
uid | uid in the container |
gid | gid in the container |
ttyPath | path of the TTY in the host |
supplementaryGids | supplementary groups in container |
capsToKeep | capabilities that will be kept |
workDirInContainer | work directory set for the new process |
envToKeep | environment variables that will be kept |
envToSet | new environment variables that will be set |
logger | logging configuration that will be set (parent process) |
lxcpp::Attach::~Attach |
( |
| ) |
|
void lxcpp::Attach::execute |
( |
| ) |
|
|
virtual |
int lxcpp::Attach::getExitCode |
( |
| ) |
const |
void lxcpp::Attach::parent |
( |
const pid_t |
pid | ) |
|
|
private |
virtual void lxcpp::Command::revert |
( |
| ) |
|
|
inlinevirtualinherited |
int lxcpp::Attach::mExitCode |
|
private |
The documentation for this class was generated from the following files: