#include <attach_options.h>
Data Fields | |
int | attach_flags |
int | namespaces |
long | personality |
char * | initial_cwd |
uid_t | uid |
gid_t | gid |
lxc_attach_env_policy_t | env_policy |
char ** | extra_env_vars |
char ** | extra_keep_env |
int | stdin_fd |
int | stdout_fd |
int | stderr_fd |
LXC attach options for lxc_container attach()
.
Any combination of LXC_ATTACH_* flags
Environment policy
Extra environment variables to set in the container environment
Names of environment variables in existing environment to retain in container environment.
The group-id to run as.
-1
for default behaviour (init gid for userns containers or 0
(super-user) if detection fails). Initial current directory, use NULL
to use cwd. If the current directory does not exist in the container, the root directory will be used instead because of kernel defaults.
The namespaces to attach to (CLONE_NEW... flags)
Initial personality (-1
to autodetect).
stderr file descriptor
File descriptors for stdin, stdout and stderr, dup2()
will be used before calling exec_function, (assuming not 0
, 1
and 2
are specified) and the original fds are closed before passing control over. Any O_CLOEXEC
flag will be removed after that. stdin file descriptor
stdout file descriptor
The user-id to run as.
-1
for default behaviour (init uid for userns containers or 0
(super-user) if detection fails).