#include <posix_ops.hpp>
Public Member Functions | |
posix_setup () | |
void | operator() () const |
Public Attributes | |
std::string | work_directory |
std::string | chroot |
uid_t | uid |
uid_t | euid |
gid_t | gid |
gid_t | egid |
This helper class is used to hold all the attributes that configure a new POSIX child process and to centralize all the actions needed to make them effective.
All its fields are public for simplicity. It is only intended for internal use and it is heavily coupled with the Context implementations.
boost::process::detail::posix_setup::posix_setup | ( | ) | [inline] |
Creates a new properties set.
Creates a new object that has sensible default values for all the properties.
void boost::process::detail::posix_setup::operator() | ( | ) | const [inline] |
Sets up the execution environment.
Modifies the current execution environment (that of the child) so that the properties become effective.
The work directory.
This string specifies the directory in which the child process starts execution. It cannot be empty.
std::string boost::process::detail::posix_setup::chroot |
The chroot directory, if any.
Specifies the directory in which the child process is chrooted before execution. Empty if this feature is not desired.
The user credentials.
UID that specifies the user credentials to use to run the child process. Defaults to the current UID.
The effective user credentials.
EUID that specifies the effective user credentials to use to run the child process. Defaults to the current EUID.
The group credentials.
GID that specifies the group credentials to use to run the child process. Defaults to the current GID.
The effective group credentials.
EGID that specifies the effective group credentials to use to run the child process. Defaults to the current EGID.