LXC
|
#include <sys/types.h>
Go to the source code of this file.
Data Structures | |
struct | lxc_attach_options_t |
struct | lxc_attach_command_t |
Macros | |
#define | LXC_ATTACH_LSM (LXC_ATTACH_LSM_EXEC | LXC_ATTACH_LSM_NOW) |
#define | LXC_ATTACH_OPTIONS_DEFAULT |
Typedefs | |
typedef enum lxc_attach_env_policy_t | lxc_attach_env_policy_t |
typedef int(* | lxc_attach_exec_t) (void *payload) |
typedef struct lxc_attach_options_t | lxc_attach_options_t |
typedef struct lxc_attach_command_t | lxc_attach_command_t |
Enumerations | |
enum | lxc_attach_env_policy_t { LXC_ATTACH_KEEP_ENV, LXC_ATTACH_CLEAR_ENV } |
enum | { LXC_ATTACH_MOVE_TO_CGROUP = 0x00000001, LXC_ATTACH_DROP_CAPABILITIES = 0x00000002, LXC_ATTACH_SET_PERSONALITY = 0x00000004, LXC_ATTACH_LSM_EXEC = 0x00000008, LXC_ATTACH_REMOUNT_PROC_SYS = 0x00010000, LXC_ATTACH_LSM_NOW = 0x00020000, LXC_ATTACH_NO_NEW_PRIVS = 0x00040000, LXC_ATTACH_TERMINAL = 0x00080000, LXC_ATTACH_DEFAULT = 0x0000FFFF } |
Functions | |
int | lxc_attach_run_command (void *payload) |
Run a command in the container. More... | |
int | lxc_attach_run_shell (void *payload) |
Run a shell command in the container. More... | |
lxc: linux Container library
(C) Copyright IBM Corp. 2007, 2008
Authors: Daniel Lezcano <daniel.lezcano at free.fr>
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#define LXC_ATTACH_LSM (LXC_ATTACH_LSM_EXEC | LXC_ATTACH_LSM_NOW) |
All Linux Security Module flags
#define LXC_ATTACH_OPTIONS_DEFAULT |
Default attach options to use
typedef struct lxc_attach_command_t lxc_attach_command_t |
Representation of a command to run in a container.
typedef enum lxc_attach_env_policy_t lxc_attach_env_policy_t |
LXC environment policy.
typedef int(* lxc_attach_exec_t) (void *payload) |
LXC attach function type.
Function to run in container.
payload | lxc_attach_command_t to run. |
0
on success, and any other value to denote failure. typedef struct lxc_attach_options_t lxc_attach_options_t |
LXC attach options for lxc_container attach()
.
anonymous enum |
int lxc_attach_run_command | ( | void * | payload | ) |
Run a command in the container.
payload | lxc_attach_command_t to run. |
-1
on error, exit code of lxc_attach_command_t program on success. int lxc_attach_run_shell | ( | void * | payload | ) |
Run a shell command in the container.
payload | Not used. |