Go to the documentation of this file.
25 #ifndef __LXC_ATTACH_OPTIONS_H
26 #define __LXC_ATTACH_OPTIONS_H
28 #include <sys/types.h>
62 #define LXC_ATTACH_LSM (LXC_ATTACH_LSM_EXEC | LXC_ATTACH_LSM_NOW)
135 #define LXC_ATTACH_OPTIONS_DEFAULT \
137 LXC_ATTACH_DEFAULT, \
143 LXC_ATTACH_KEEP_ENV, \
gid_t gid
Definition: attach_options.h:107
lxc_attach_env_policy_t
Definition: attach_options.h:37
@ LXC_ATTACH_DROP_CAPABILITIES
Drop capabilities.
Definition: attach_options.h:45
@ LXC_ATTACH_DEFAULT
Mask of flags to apply by default.
Definition: attach_options.h:58
@ LXC_ATTACH_CLEAR_ENV
Clear the environment.
Definition: attach_options.h:39
@ LXC_ATTACH_MOVE_TO_CGROUP
Move to cgroup.
Definition: attach_options.h:44
long personality
Definition: attach_options.h:87
int(* lxc_attach_exec_t)(void *payload)
Definition: attach_options.h:72
@ LXC_ATTACH_SET_PERSONALITY
Set personality.
Definition: attach_options.h:46
char * initial_cwd
Definition: attach_options.h:93
int stdout_fd
Definition: attach_options.h:129
lxc_attach_env_policy_t env_policy
Definition: attach_options.h:110
int namespaces
Definition: attach_options.h:82
Definition: attach_options.h:152
int stdin_fd
Definition: attach_options.h:128
int lxc_attach_run_shell(void *payload)
Run a shell command in the container.
Definition: attach_options.h:77
struct lxc_attach_options_t lxc_attach_options_t
uid_t uid
Definition: attach_options.h:100
char ** extra_env_vars
Definition: attach_options.h:113
char ** argv
Definition: attach_options.h:154
int lxc_attach_run_command(void *payload)
Run a command in the container.
char ** extra_keep_env
Definition: attach_options.h:118
@ LXC_ATTACH_REMOUNT_PROC_SYS
Remount /proc filesystem.
Definition: attach_options.h:50
struct lxc_attach_command_t lxc_attach_command_t
int attach_flags
Definition: attach_options.h:79
@ LXC_ATTACH_LSM_EXEC
Execute under a Linux Security Module.
Definition: attach_options.h:47
int stderr_fd
Definition: attach_options.h:130
@ LXC_ATTACH_LSM_NOW
FIXME: unknown.
Definition: attach_options.h:51
@ LXC_ATTACH_KEEP_ENV
Retain the environment.
Definition: attach_options.h:38
char * program
Definition: attach_options.h:153