24 #ifndef LXCPP_ATTACH_ATTACH_CONFIG_HPP
25 #define LXCPP_ATTACH_ATTACH_CONFIG_HPP
32 #include <sys/types.h>
42 std::vector<std::string>
argv;
72 std::vector<std::pair<std::string, std::string>>
envToSet;
87 const std::vector<std::string>&
envToKeep,
88 const std::vector<std::pair<std::string, std::string>>&
envToSet,
92 namespaces(namespaces),
96 supplementaryGids(supplementaryGids),
97 capsToKeep(capsToKeep),
98 workDirInContainer(workDirInContainer),
123 #endif // LXCPP_ATTACH_ATTACH_CONFIG_HPP
int namespaces
Namespaces to which we'll attach.
Definition: attach-config.hpp:48
process handling routines
std::vector< gid_t > supplementaryGids
Supplementary groups to set.
Definition: attach-config.hpp:60
std::vector< std::pair< std::string, std::string > > envToSet
Environment variables that will be set/updated for the attached process.
Definition: attach-config.hpp:72
std::string workDirInContainer
Work directory for the attached process.
Definition: attach-config.hpp:66
Configuration file for the code.
std::vector< std::string > argv
Arguments passed by user, argv[0] is the binary's path in container.
Definition: attach-config.hpp:42
uid_t uid
User ID to set.
Definition: attach-config.hpp:51
LoggerConfig logger
Logging on the attached process side.
Definition: attach-config.hpp:75
std::vector< std::string > envToKeep
Environment variables that will be kept.
Definition: attach-config.hpp:69
pid_t initPid
PID of the container's init process.
Definition: attach-config.hpp:45
int capsToKeep
Mask of capabilities that will be available.
Definition: attach-config.hpp:63
#define CARGO_REGISTER(...)
Registers cargo fields within class.
Definition: fields.hpp:74
Definition: attach-config.hpp:39
gid_t gid
Group ID to set.
Definition: attach-config.hpp:54
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)
Definition: attach-config.hpp:79
Logger configuration.
Definition: logger-config.hpp:38
int ttyFD
PTS that will become the control terminal for the attached process.
Definition: attach-config.hpp:57