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

#include <attach-config.hpp>

Public Member Functions

 AttachConfig ()=default
 
 AttachConfig (const std::vector< std::string > &argv, const pid_t initPid, const int namespaces, const uid_t uid, const gid_t gid, 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)
 

Public Attributes

std::vector< std::string > argv
 Arguments passed by user, argv[0] is the binary's path in container. More...
 
pid_t initPid
 PID of the container's init process. More...
 
int namespaces
 Namespaces to which we'll attach. More...
 
uid_t uid
 User ID to set. More...
 
gid_t gid
 Group ID to set. More...
 
int ttyFD
 PTS that will become the control terminal for the attached process. More...
 
std::vector< gid_t > supplementaryGids
 Supplementary groups to set. More...
 
int capsToKeep
 Mask of capabilities that will be available. More...
 
std::string workDirInContainer
 Work directory for the attached process. More...
 
std::vector< std::string > envToKeep
 Environment variables that will be kept. More...
 
std::vector< std::pair
< std::string, std::string > > 
envToSet
 Environment variables that will be set/updated for the attached process. More...
 
LoggerConfig logger
 Logging on the attached process side. More...
 

Constructor & Destructor Documentation

lxcpp::AttachConfig::AttachConfig ( )
default
lxcpp::AttachConfig::AttachConfig ( const std::vector< std::string > &  argv,
const pid_t  initPid,
const int  namespaces,
const uid_t  uid,
const gid_t  gid,
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 
)
inline

Member Data Documentation

std::vector<std::string> lxcpp::AttachConfig::argv

Arguments passed by user, argv[0] is the binary's path in container.

int lxcpp::AttachConfig::capsToKeep

Mask of capabilities that will be available.

std::vector<std::string> lxcpp::AttachConfig::envToKeep

Environment variables that will be kept.

std::vector<std::pair<std::string, std::string> > lxcpp::AttachConfig::envToSet

Environment variables that will be set/updated for the attached process.

gid_t lxcpp::AttachConfig::gid

Group ID to set.

pid_t lxcpp::AttachConfig::initPid

PID of the container's init process.

LoggerConfig lxcpp::AttachConfig::logger

Logging on the attached process side.

int lxcpp::AttachConfig::namespaces

Namespaces to which we'll attach.

std::vector<gid_t> lxcpp::AttachConfig::supplementaryGids

Supplementary groups to set.

int lxcpp::AttachConfig::ttyFD

PTS that will become the control terminal for the attached process.

uid_t lxcpp::AttachConfig::uid

User ID to set.

std::string lxcpp::AttachConfig::workDirInContainer

Work directory for the attached process.


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