Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
lxcpp::Attach Class Referencefinal

#include <attach.hpp>

+ Inheritance diagram for lxcpp::Attach:

Public Member Functions

 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
 

Private Member Functions

void parent (const pid_t pid)
 
virtual void revert ()
 

Private Attributes

utils::Channel mIntermChannel
 
AttachConfig mConfig
 
int mExitCode
 

Constructor & Destructor Documentation

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
configconfig of a container to which it attaches
argvpath and arguments for the user's executable
uiduid in the container
gidgid in the container
ttyPathpath of the TTY in the host
supplementaryGidssupplementary groups in container
capsToKeepcapabilities that will be kept
workDirInContainerwork directory set for the new process
envToKeepenvironment variables that will be kept
envToSetnew environment variables that will be set
loggerlogging configuration that will be set (parent process)
lxcpp::Attach::~Attach ( )

Member Function Documentation

void lxcpp::Attach::execute ( )
virtual

Implements lxcpp::Command.

int lxcpp::Attach::getExitCode ( ) const
void lxcpp::Attach::parent ( const pid_t  pid)
private
virtual void lxcpp::Command::revert ( )
inlinevirtualinherited

Member Data Documentation

AttachConfig lxcpp::Attach::mConfig
private
int lxcpp::Attach::mExitCode
private
utils::Channel lxcpp::Attach::mIntermChannel
private

The documentation for this class was generated from the following files: