Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
f15b126e
Unverified
Commit
f15b126e
authored
Jul 21, 2020
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tree-wide: hide further unnecessary symbols
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
04c5582a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
100 additions
and
80 deletions
+100
-80
netns_ifaddrs.h
src/include/netns_ifaddrs.h
+4
-3
Makefile.am
src/lxc/Makefile.am
+0
-0
af_unix.c
src/lxc/af_unix.c
+2
-1
cgfsng.c
src/lxc/cgroups/cgfsng.c
+9
-13
cgroup.c
src/lxc/cgroups/cgroup.c
+2
-1
lxc_usernsexec.c
src/lxc/cmd/lxc_usernsexec.c
+2
-1
conf.c
src/lxc/conf.c
+4
-4
conf.h
src/lxc/conf.h
+1
-1
log.c
src/lxc/log.c
+1
-1
log.h
src/lxc/log.h
+9
-9
lsm.c
src/lxc/lsm/lsm.c
+4
-3
lxc.h
src/lxc/lxc.h
+13
-15
lxccontainer.c
src/lxc/lxccontainer.c
+1
-1
network.c
src/lxc/network.c
+3
-3
nl.h
src/lxc/nl.h
+5
-6
rexec.c
src/lxc/rexec.c
+1
-0
seccomp.c
src/lxc/seccomp.c
+5
-5
start.c
src/lxc/start.c
+1
-0
rbd.c
src/lxc/storage/rbd.c
+4
-4
storage.c
src/lxc/storage/storage.c
+2
-2
zfs.c
src/lxc/storage/zfs.c
+6
-6
utils.c
src/lxc/utils.c
+1
-1
Makefile.am
src/tests/Makefile.am
+20
-0
No files found.
src/include/netns_ifaddrs.h
View file @
f15b126e
...
@@ -12,6 +12,7 @@ extern "C" {
...
@@ -12,6 +12,7 @@ extern "C" {
#include <stdbool.h>
#include <stdbool.h>
#include <sys/socket.h>
#include <sys/socket.h>
#include "compiler.h"
#include "netns_ifaddrs.h"
#include "netns_ifaddrs.h"
struct
netns_ifaddrs
{
struct
netns_ifaddrs
{
...
@@ -50,9 +51,9 @@ struct netns_ifaddrs {
...
@@ -50,9 +51,9 @@ struct netns_ifaddrs {
#define __ifa_broadaddr ifa_ifu.ifu_broadaddr
#define __ifa_broadaddr ifa_ifu.ifu_broadaddr
#define __ifa_dstaddr ifa_ifu.ifu_dstaddr
#define __ifa_dstaddr ifa_ifu.ifu_dstaddr
extern
void
netns_freeifaddrs
(
struct
netns_ifaddrs
*
);
__hidden
extern
void
netns_freeifaddrs
(
struct
netns_ifaddrs
*
);
extern
int
netns_getifaddrs
(
struct
netns_ifaddrs
**
ifap
,
__s32
netns_id
,
__hidden
extern
int
netns_getifaddrs
(
struct
netns_ifaddrs
**
ifap
,
__s32
netns_id
,
bool
*
netnsid_aware
);
bool
*
netnsid_aware
);
#ifdef __cplusplus
#ifdef __cplusplus
}
}
...
...
src/lxc/Makefile.am
View file @
f15b126e
This diff is collapsed.
Click to expand it.
src/lxc/af_unix.c
View file @
f15b126e
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
#include <sys/syscall.h>
#include <sys/syscall.h>
#include <sys/un.h>
#include <sys/un.h>
#include "af_unix.h"
#include "config.h"
#include "config.h"
#include "log.h"
#include "log.h"
#include "macro.h"
#include "macro.h"
...
@@ -349,7 +350,7 @@ int lxc_unix_connect_type(struct sockaddr_un *addr, int type)
...
@@ -349,7 +350,7 @@ int lxc_unix_connect_type(struct sockaddr_un *addr, int type)
return
move_fd
(
fd
);
return
move_fd
(
fd
);
}
}
int
lxc_unix_connect
(
struct
sockaddr_un
*
addr
,
int
type
)
int
lxc_unix_connect
(
struct
sockaddr_un
*
addr
)
{
{
return
lxc_unix_connect_type
(
addr
,
SOCK_STREAM
);
return
lxc_unix_connect_type
(
addr
,
SOCK_STREAM
);
}
}
...
...
src/lxc/cgroups/cgfsng.c
View file @
f15b126e
...
@@ -145,7 +145,7 @@ static void must_append_controller(char **klist, char **nlist, char ***clist,
...
@@ -145,7 +145,7 @@ static void must_append_controller(char **klist, char **nlist, char ***clist,
/* Given a handler's cgroup data, return the struct hierarchy for the controller
/* Given a handler's cgroup data, return the struct hierarchy for the controller
* @c, or NULL if there is none.
* @c, or NULL if there is none.
*/
*/
struct
hierarchy
*
get_hierarchy
(
struct
cgroup_ops
*
ops
,
const
char
*
controller
)
st
atic
st
ruct
hierarchy
*
get_hierarchy
(
struct
cgroup_ops
*
ops
,
const
char
*
controller
)
{
{
if
(
!
ops
->
hierarchies
)
if
(
!
ops
->
hierarchies
)
return
log_trace_errno
(
NULL
,
errno
,
"There are no useable cgroup controllers"
);
return
log_trace_errno
(
NULL
,
errno
,
"There are no useable cgroup controllers"
);
...
@@ -948,8 +948,7 @@ static void lxc_cgfsng_print_basecg_debuginfo(char *basecginfo, char **klist,
...
@@ -948,8 +948,7 @@ static void lxc_cgfsng_print_basecg_debuginfo(char *basecginfo, char **klist,
TRACE
(
"named subsystem %d: %s"
,
k
,
*
it
);
TRACE
(
"named subsystem %d: %s"
,
k
,
*
it
);
}
}
static
int
cgroup_tree_remove
(
struct
hierarchy
**
hierarchies
,
static
int
cgroup_tree_remove
(
struct
hierarchy
**
hierarchies
,
const
char
*
container_cgroup
)
const
char
*
container_cgroup
)
{
{
if
(
!
container_cgroup
||
!
hierarchies
)
if
(
!
container_cgroup
||
!
hierarchies
)
return
0
;
return
0
;
...
@@ -1285,8 +1284,7 @@ static bool check_cgroup_dir_config(struct lxc_conf *conf)
...
@@ -1285,8 +1284,7 @@ static bool check_cgroup_dir_config(struct lxc_conf *conf)
return
true
;
return
true
;
}
}
__cgfsng_ops
static
inline
bool
cgfsng_monitor_create
(
struct
cgroup_ops
*
ops
,
__cgfsng_ops
static
bool
cgfsng_monitor_create
(
struct
cgroup_ops
*
ops
,
struct
lxc_handler
*
handler
)
struct
lxc_handler
*
handler
)
{
{
__do_free
char
*
monitor_cgroup
=
NULL
,
*
__cgroup_tree
=
NULL
;
__do_free
char
*
monitor_cgroup
=
NULL
,
*
__cgroup_tree
=
NULL
;
const
char
*
cgroup_tree
;
const
char
*
cgroup_tree
;
...
@@ -1374,8 +1372,7 @@ __cgfsng_ops static inline bool cgfsng_monitor_create(struct cgroup_ops *ops,
...
@@ -1374,8 +1372,7 @@ __cgfsng_ops static inline bool cgfsng_monitor_create(struct cgroup_ops *ops,
* Try to create the same cgroup in all hierarchies. Start with cgroup_pattern;
* Try to create the same cgroup in all hierarchies. Start with cgroup_pattern;
* next cgroup_pattern-1, -2, ..., -999.
* next cgroup_pattern-1, -2, ..., -999.
*/
*/
__cgfsng_ops
static
inline
bool
cgfsng_payload_create
(
struct
cgroup_ops
*
ops
,
__cgfsng_ops
static
bool
cgfsng_payload_create
(
struct
cgroup_ops
*
ops
,
struct
lxc_handler
*
handler
)
struct
lxc_handler
*
handler
)
{
{
__do_free
char
*
container_cgroup
=
NULL
,
__do_free
char
*
container_cgroup
=
NULL
,
*
__cgroup_tree
=
NULL
,
*
__cgroup_tree
=
NULL
,
...
@@ -1674,7 +1671,7 @@ __cgfsng_ops static bool cgfsng_chown(struct cgroup_ops *ops,
...
@@ -1674,7 +1671,7 @@ __cgfsng_ops static bool cgfsng_chown(struct cgroup_ops *ops,
return
true
;
return
true
;
}
}
__cgfsng_ops
void
cgfsng_payload_finalize
(
struct
cgroup_ops
*
ops
)
__cgfsng_ops
static
void
cgfsng_payload_finalize
(
struct
cgroup_ops
*
ops
)
{
{
if
(
!
ops
)
if
(
!
ops
)
return
;
return
;
...
@@ -2949,8 +2946,7 @@ __cgfsng_ops static bool cgfsng_setup_limits(struct cgroup_ops *ops,
...
@@ -2949,8 +2946,7 @@ __cgfsng_ops static bool cgfsng_setup_limits(struct cgroup_ops *ops,
return
log_info
(
true
,
"Limits for the unified cgroup hierarchy have been setup"
);
return
log_info
(
true
,
"Limits for the unified cgroup hierarchy have been setup"
);
}
}
__cgfsng_ops
bool
cgfsng_devices_activate
(
struct
cgroup_ops
*
ops
,
__cgfsng_ops
static
bool
cgfsng_devices_activate
(
struct
cgroup_ops
*
ops
,
struct
lxc_handler
*
handler
)
struct
lxc_handler
*
handler
)
{
{
#ifdef HAVE_STRUCT_BPF_CGROUP_DEV_CTX
#ifdef HAVE_STRUCT_BPF_CGROUP_DEV_CTX
__do_bpf_program_free
struct
bpf_program
*
devices
=
NULL
;
__do_bpf_program_free
struct
bpf_program
*
devices
=
NULL
;
...
@@ -3025,7 +3021,7 @@ __cgfsng_ops bool cgfsng_devices_activate(struct cgroup_ops *ops,
...
@@ -3025,7 +3021,7 @@ __cgfsng_ops bool cgfsng_devices_activate(struct cgroup_ops *ops,
return
true
;
return
true
;
}
}
bool
__cgfsng_delegate_controllers
(
struct
cgroup_ops
*
ops
,
const
char
*
cgroup
)
static
bool
__cgfsng_delegate_controllers
(
struct
cgroup_ops
*
ops
,
const
char
*
cgroup
)
{
{
__do_free
char
*
add_controllers
=
NULL
,
*
base_path
=
NULL
;
__do_free
char
*
add_controllers
=
NULL
,
*
base_path
=
NULL
;
__do_free_string_list
char
**
parts
=
NULL
;
__do_free_string_list
char
**
parts
=
NULL
;
...
@@ -3084,7 +3080,7 @@ bool __cgfsng_delegate_controllers(struct cgroup_ops *ops, const char *cgroup)
...
@@ -3084,7 +3080,7 @@ bool __cgfsng_delegate_controllers(struct cgroup_ops *ops, const char *cgroup)
return
true
;
return
true
;
}
}
__cgfsng_ops
bool
cgfsng_monitor_delegate_controllers
(
struct
cgroup_ops
*
ops
)
__cgfsng_ops
static
bool
cgfsng_monitor_delegate_controllers
(
struct
cgroup_ops
*
ops
)
{
{
if
(
!
ops
)
if
(
!
ops
)
return
ret_set_errno
(
false
,
ENOENT
);
return
ret_set_errno
(
false
,
ENOENT
);
...
@@ -3092,7 +3088,7 @@ __cgfsng_ops bool cgfsng_monitor_delegate_controllers(struct cgroup_ops *ops)
...
@@ -3092,7 +3088,7 @@ __cgfsng_ops bool cgfsng_monitor_delegate_controllers(struct cgroup_ops *ops)
return
__cgfsng_delegate_controllers
(
ops
,
ops
->
monitor_cgroup
);
return
__cgfsng_delegate_controllers
(
ops
,
ops
->
monitor_cgroup
);
}
}
__cgfsng_ops
bool
cgfsng_payload_delegate_controllers
(
struct
cgroup_ops
*
ops
)
__cgfsng_ops
static
bool
cgfsng_payload_delegate_controllers
(
struct
cgroup_ops
*
ops
)
{
{
if
(
!
ops
)
if
(
!
ops
)
return
ret_set_errno
(
false
,
ENOENT
);
return
ret_set_errno
(
false
,
ENOENT
);
...
...
src/lxc/cgroups/cgroup.c
View file @
f15b126e
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#include "cgroup.h"
#include "cgroup.h"
#include "cgroup2_devices.h"
#include "cgroup2_devices.h"
#include "compiler.h"
#include "conf.h"
#include "conf.h"
#include "config.h"
#include "config.h"
#include "initutils.h"
#include "initutils.h"
...
@@ -18,7 +19,7 @@
...
@@ -18,7 +19,7 @@
lxc_log_define
(
cgroup
,
lxc
);
lxc_log_define
(
cgroup
,
lxc
);
extern
struct
cgroup_ops
*
cgfsng_ops_init
(
struct
lxc_conf
*
conf
);
__hidden
extern
struct
cgroup_ops
*
cgfsng_ops_init
(
struct
lxc_conf
*
conf
);
struct
cgroup_ops
*
cgroup_init
(
struct
lxc_conf
*
conf
)
struct
cgroup_ops
*
cgroup_init
(
struct
lxc_conf
*
conf
)
{
{
...
...
src/lxc/cmd/lxc_usernsexec.c
View file @
f15b126e
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
#include <sys/wait.h>
#include <sys/wait.h>
#include <unistd.h>
#include <unistd.h>
#include "compiler.h"
#include "conf.h"
#include "conf.h"
#include "config.h"
#include "config.h"
#include "list.h"
#include "list.h"
...
@@ -31,7 +32,7 @@
...
@@ -31,7 +32,7 @@
#include "syscall_wrappers.h"
#include "syscall_wrappers.h"
#include "utils.h"
#include "utils.h"
extern
int
lxc_log_fd
;
__hidden
extern
int
lxc_log_fd
;
static
void
usage
(
const
char
*
name
)
static
void
usage
(
const
char
*
name
)
{
{
...
...
src/lxc/conf.c
View file @
f15b126e
...
@@ -903,7 +903,7 @@ static int lxc_setup_ttys(struct lxc_conf *conf)
...
@@ -903,7 +903,7 @@ static int lxc_setup_ttys(struct lxc_conf *conf)
define_cleanup_function
(
struct
lxc_tty_info
*
,
lxc_delete_tty
);
define_cleanup_function
(
struct
lxc_tty_info
*
,
lxc_delete_tty
);
int
lxc_allocate_ttys
(
struct
lxc_conf
*
conf
)
static
int
lxc_allocate_ttys
(
struct
lxc_conf
*
conf
)
{
{
struct
lxc_terminal_info
*
tty_new
=
NULL
;
struct
lxc_terminal_info
*
tty_new
=
NULL
;
int
ret
;
int
ret
;
...
@@ -1262,7 +1262,7 @@ static int lxc_mount_rootfs(struct lxc_conf *conf)
...
@@ -1262,7 +1262,7 @@ static int lxc_mount_rootfs(struct lxc_conf *conf)
return
0
;
return
0
;
}
}
int
lxc_chroot
(
const
struct
lxc_rootfs
*
rootfs
)
static
int
lxc_chroot
(
const
struct
lxc_rootfs
*
rootfs
)
{
{
__do_free
char
*
nroot
=
NULL
;
__do_free
char
*
nroot
=
NULL
;
int
i
,
ret
;
int
i
,
ret
;
...
@@ -2701,7 +2701,7 @@ static int idmaptool_on_path_and_privileged(const char *binary, cap_value_t cap)
...
@@ -2701,7 +2701,7 @@ static int idmaptool_on_path_and_privileged(const char *binary, cap_value_t cap)
return
1
;
return
1
;
}
}
int
lxc_map_ids_exec_wrapper
(
void
*
args
)
static
int
lxc_map_ids_exec_wrapper
(
void
*
args
)
{
{
execl
(
"/bin/sh"
,
"sh"
,
"-c"
,
(
char
*
)
args
,
(
char
*
)
NULL
);
execl
(
"/bin/sh"
,
"sh"
,
"-c"
,
(
char
*
)
args
,
(
char
*
)
NULL
);
return
-
1
;
return
-
1
;
...
@@ -2897,7 +2897,7 @@ again:
...
@@ -2897,7 +2897,7 @@ again:
}
}
/* NOTE: Must not be called from inside the container namespace! */
/* NOTE: Must not be called from inside the container namespace! */
int
lxc_create_tmp_proc_mount
(
struct
lxc_conf
*
conf
)
static
int
lxc_create_tmp_proc_mount
(
struct
lxc_conf
*
conf
)
{
{
int
mounted
;
int
mounted
;
...
...
src/lxc/conf.h
View file @
f15b126e
...
@@ -206,7 +206,7 @@ enum lxchooks {
...
@@ -206,7 +206,7 @@ enum lxchooks {
NUM_LXC_HOOKS
NUM_LXC_HOOKS
};
};
extern
char
*
lxchook_names
[
NUM_LXC_HOOKS
];
__hidden
extern
char
*
lxchook_names
[
NUM_LXC_HOOKS
];
struct
lxc_state_client
{
struct
lxc_state_client
{
int
clientfd
;
int
clientfd
;
...
...
src/lxc/log.c
View file @
f15b126e
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
int
lxc_log_fd
=
-
EBADF
;
int
lxc_log_fd
=
-
EBADF
;
static
bool
wants_syslog
=
false
;
static
bool
wants_syslog
=
false
;
int
lxc_quiet_specified
;
static
int
lxc_quiet_specified
;
int
lxc_log_use_global_fd
;
int
lxc_log_use_global_fd
;
static
int
lxc_loglevel_specified
;
static
int
lxc_loglevel_specified
;
...
...
src/lxc/log.h
View file @
f15b126e
...
@@ -28,8 +28,8 @@
...
@@ -28,8 +28,8 @@
#define F_DUPFD_CLOEXEC 1030
#define F_DUPFD_CLOEXEC 1030
#endif
#endif
#define LXC_LOG_PREFIX_SIZE
32
#define LXC_LOG_PREFIX_SIZE
32
#define LXC_LOG_BUFFER_SIZE
4096
#define LXC_LOG_BUFFER_SIZE
4096
/* predefined lxc log priorities. */
/* predefined lxc log priorities. */
enum
lxc_loglevel
{
enum
lxc_loglevel
{
...
@@ -277,13 +277,13 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
...
@@ -277,13 +277,13 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
/*
/*
* Helper macro to define and use static categories.
* Helper macro to define and use static categories.
*/
*/
#define lxc_log_category_define(name, parent) \
#define lxc_log_category_define(name, parent)
\
extern struct lxc_log_category lxc_log_category_##parent; \
__hidden
extern struct lxc_log_category lxc_log_category_##parent; \
struct lxc_log_category lxc_log_category_##name = { \
__hidden
struct lxc_log_category lxc_log_category_##name = { \
#name, \
#name,
\
LXC_LOG_LEVEL_NOTSET, \
LXC_LOG_LEVEL_NOTSET,
\
NULL, \
NULL,
\
&lxc_log_category_##parent \
&lxc_log_category_##parent
\
};
};
#define lxc_log_define(name, parent) \
#define lxc_log_define(name, parent) \
...
...
src/lxc/lsm/lsm.c
View file @
f15b126e
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
#include <sys/param.h>
#include <sys/param.h>
#include <unistd.h>
#include <unistd.h>
#include "compiler.h"
#include "conf.h"
#include "conf.h"
#include "config.h"
#include "config.h"
#include "log.h"
#include "log.h"
...
@@ -18,9 +19,9 @@ lxc_log_define(lsm, lxc);
...
@@ -18,9 +19,9 @@ lxc_log_define(lsm, lxc);
static
struct
lsm_drv
*
drv
=
NULL
;
static
struct
lsm_drv
*
drv
=
NULL
;
extern
struct
lsm_drv
*
lsm_apparmor_drv_init
(
void
);
__hidden
extern
struct
lsm_drv
*
lsm_apparmor_drv_init
(
void
);
extern
struct
lsm_drv
*
lsm_selinux_drv_init
(
void
);
__hidden
extern
struct
lsm_drv
*
lsm_selinux_drv_init
(
void
);
extern
struct
lsm_drv
*
lsm_nop_drv_init
(
void
);
__hidden
extern
struct
lsm_drv
*
lsm_nop_drv_init
(
void
);
__attribute__
((
constructor
))
__attribute__
((
constructor
))
void
lsm_init
(
void
)
void
lsm_init
(
void
)
...
...
src/lxc/lxc.h
View file @
f15b126e
...
@@ -12,6 +12,7 @@ extern "C" {
...
@@ -12,6 +12,7 @@ extern "C" {
#include <sys/select.h>
#include <sys/select.h>
#include <sys/types.h>
#include <sys/types.h>
#include "compiler.h"
#include "state.h"
#include "state.h"
struct
lxc_msg
;
struct
lxc_msg
;
...
@@ -32,8 +33,8 @@ struct lxc_handler;
...
@@ -32,8 +33,8 @@ struct lxc_handler;
* @daemonize : whether or not the container is daemonized
* @daemonize : whether or not the container is daemonized
* Returns 0 on success, < 0 otherwise
* Returns 0 on success, < 0 otherwise
*/
*/
extern
int
lxc_start
(
char
*
const
argv
[],
struct
lxc_handler
*
handler
,
__hidden
extern
int
lxc_start
(
char
*
const
argv
[],
struct
lxc_handler
*
handler
,
const
char
*
lxcpath
,
const
char
*
lxcpath
,
bool
daemonize
,
int
*
error_num
);
bool
daemonize
,
int
*
error_num
);
/*
/*
* Start the specified command inside an application container
* Start the specified command inside an application container
...
@@ -44,39 +45,37 @@ extern int lxc_start(char *const argv[], struct lxc_handler *handler,
...
@@ -44,39 +45,37 @@ extern int lxc_start(char *const argv[], struct lxc_handler *handler,
* @daemonize : whether or not the container is daemonized
* @daemonize : whether or not the container is daemonized
* Returns 0 on success, < 0 otherwise
* Returns 0 on success, < 0 otherwise
*/
*/
extern
int
lxc_execute
(
const
char
*
name
,
char
*
const
argv
[],
int
quiet
,
__hidden
extern
int
lxc_execute
(
const
char
*
name
,
char
*
const
argv
[],
int
quiet
,
struct
lxc_handler
*
handler
,
const
char
*
lxcpath
,
struct
lxc_handler
*
handler
,
const
char
*
lxcpath
,
bool
daemonize
,
bool
daemonize
,
int
*
error_num
);
int
*
error_num
);
/*
/*
* Close the fd associated with the monitoring
* Close the fd associated with the monitoring
* @fd : the file descriptor provided by lxc_monitor_open
* @fd : the file descriptor provided by lxc_monitor_open
* Returns 0 on success, < 0 otherwise
* Returns 0 on success, < 0 otherwise
*/
*/
extern
int
lxc_monitor_close
(
int
fd
);
__hidden
extern
int
lxc_monitor_close
(
int
fd
);
/*
/*
* Freeze all the tasks running inside the container <name>
* Freeze all the tasks running inside the container <name>
* @name : the container name
* @name : the container name
* Returns 0 on success, < 0 otherwise
* Returns 0 on success, < 0 otherwise
*/
*/
extern
int
lxc_freeze
(
struct
lxc_conf
*
conf
,
const
char
*
name
,
__hidden
extern
int
lxc_freeze
(
struct
lxc_conf
*
conf
,
const
char
*
name
,
const
char
*
lxcpath
);
const
char
*
lxcpath
);
/*
/*
* Unfreeze all previously frozen tasks.
* Unfreeze all previously frozen tasks.
* @name : the name of the container
* @name : the name of the container
* Return 0 on success, < 0 otherwise
* Return 0 on success, < 0 otherwise
*/
*/
extern
int
lxc_unfreeze
(
struct
lxc_conf
*
conf
,
const
char
*
name
,
__hidden
extern
int
lxc_unfreeze
(
struct
lxc_conf
*
conf
,
const
char
*
name
,
const
char
*
lxcpath
);
const
char
*
lxcpath
);
/*
/*
* Retrieve the container state
* Retrieve the container state
* @name : the name of the container
* @name : the name of the container
* Returns the state of the container on success, < 0 otherwise
* Returns the state of the container on success, < 0 otherwise
*/
*/
extern
lxc_state_t
lxc_state
(
const
char
*
name
,
const
char
*
lxcpath
);
__hidden
extern
lxc_state_t
lxc_state
(
const
char
*
name
,
const
char
*
lxcpath
);
/*
/*
* Create and return a new lxccontainer struct.
* Create and return a new lxccontainer struct.
...
@@ -105,17 +104,16 @@ extern int lxc_get_wait_states(const char **states);
...
@@ -105,17 +104,16 @@ extern int lxc_get_wait_states(const char **states);
/*
/*
* Add a dependency to a container
* Add a dependency to a container
*/
*/
extern
int
add_rdepend
(
struct
lxc_conf
*
lxc_conf
,
char
*
rdepend
);
__hidden
extern
int
add_rdepend
(
struct
lxc_conf
*
lxc_conf
,
char
*
rdepend
);
/*
/*
* Set a key/value configuration option. Requires that to take a lock on the
* Set a key/value configuration option. Requires that to take a lock on the
* in-memory config of the container.
* in-memory config of the container.
*/
*/
extern
int
lxc_set_config_item_locked
(
struct
lxc_conf
*
conf
,
const
char
*
key
,
__hidden
extern
int
lxc_set_config_item_locked
(
struct
lxc_conf
*
conf
,
const
char
*
key
,
const
char
*
v
);
const
char
*
v
);
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
#endif
#endif
/* __LXC_LXC_H */
src/lxc/lxccontainer.c
View file @
f15b126e
...
@@ -3540,7 +3540,7 @@ static bool add_rdepends(struct lxc_container *c, struct lxc_container *c0)
...
@@ -3540,7 +3540,7 @@ static bool add_rdepends(struct lxc_container *c, struct lxc_container *c0)
* then default to those even if not requested.
* then default to those even if not requested.
* Currently we only do this for btrfs.
* Currently we only do this for btrfs.
*/
*/
bool
should_default_to_snapshot
(
struct
lxc_container
*
c0
,
static
bool
should_default_to_snapshot
(
struct
lxc_container
*
c0
,
struct
lxc_container
*
c1
)
struct
lxc_container
*
c1
)
{
{
__do_free
char
*
p0
=
NULL
,
*
p1
=
NULL
;
__do_free
char
*
p0
=
NULL
,
*
p1
=
NULL
;
...
...
src/lxc/network.c
View file @
f15b126e
...
@@ -1421,7 +1421,7 @@ int netdev_set_flag(const char *name, int flag)
...
@@ -1421,7 +1421,7 @@ int netdev_set_flag(const char *name, int flag)
return
netlink_transaction
(
nlh_ptr
,
nlmsg
,
answer
);
return
netlink_transaction
(
nlh_ptr
,
nlmsg
,
answer
);
}
}
int
netdev_get_flag
(
const
char
*
name
,
int
*
flag
)
static
int
netdev_get_flag
(
const
char
*
name
,
int
*
flag
)
{
{
call_cleaner
(
nlmsg_free
)
struct
nlmsg
*
answer
=
NULL
,
*
nlmsg
=
NULL
;
call_cleaner
(
nlmsg_free
)
struct
nlmsg
*
answer
=
NULL
,
*
nlmsg
=
NULL
;
struct
nl_handler
nlh
;
struct
nl_handler
nlh
;
...
@@ -2768,7 +2768,7 @@ static int lxc_delete_network_unpriv_exec(const char *lxcpath, const char *lxcna
...
@@ -2768,7 +2768,7 @@ static int lxc_delete_network_unpriv_exec(const char *lxcpath, const char *lxcna
return
0
;
return
0
;
}
}
bool
lxc_delete_network_unpriv
(
struct
lxc_handler
*
handler
)
static
bool
lxc_delete_network_unpriv
(
struct
lxc_handler
*
handler
)
{
{
int
ret
;
int
ret
;
struct
lxc_list
*
iterator
;
struct
lxc_list
*
iterator
;
...
@@ -3148,7 +3148,7 @@ static int lxc_create_network_unpriv(struct lxc_handler *handler)
...
@@ -3148,7 +3148,7 @@ static int lxc_create_network_unpriv(struct lxc_handler *handler)
return
0
;
return
0
;
}
}
bool
lxc_delete_network_priv
(
struct
lxc_handler
*
handler
)
static
bool
lxc_delete_network_priv
(
struct
lxc_handler
*
handler
)
{
{
int
ret
;
int
ret
;
struct
lxc_list
*
iterator
;
struct
lxc_list
*
iterator
;
...
...
src/lxc/nl.h
View file @
f15b126e
...
@@ -122,7 +122,7 @@ __hidden extern int __netlink_transaction(struct nl_handler *handler, struct nlm
...
@@ -122,7 +122,7 @@ __hidden extern int __netlink_transaction(struct nl_handler *handler, struct nlm
*
*
* Returns 0 on success, < 0 otherwise
* Returns 0 on success, < 0 otherwise
*/
*/
__hidden
int
nla_put_string
(
struct
nlmsg
*
nlmsg
,
int
attr
,
const
char
*
string
);
__hidden
extern
int
nla_put_string
(
struct
nlmsg
*
nlmsg
,
int
attr
,
const
char
*
string
);
/*
/*
* nla_put_buffer: copy a buffer with a specified size to a netlink
* nla_put_buffer: copy a buffer with a specified size to a netlink
...
@@ -135,8 +135,7 @@ __hidden int nla_put_string(struct nlmsg *nlmsg, int attr, const char *string);
...
@@ -135,8 +135,7 @@ __hidden int nla_put_string(struct nlmsg *nlmsg, int attr, const char *string);
*
*
* Returns 0 on success, < 0 otherwise
* Returns 0 on success, < 0 otherwise
*/
*/
int
nla_put_buffer
(
struct
nlmsg
*
nlmsg
,
int
attr
,
__hidden
extern
int
nla_put_buffer
(
struct
nlmsg
*
nlmsg
,
int
attr
,
const
void
*
data
,
size_t
size
);
const
void
*
data
,
size_t
size
);
/*
/*
* nla_put_u32: copy an integer to a netlink message attribute
* nla_put_u32: copy an integer to a netlink message attribute
...
@@ -147,7 +146,7 @@ int nla_put_buffer(struct nlmsg *nlmsg, int attr,
...
@@ -147,7 +146,7 @@ int nla_put_buffer(struct nlmsg *nlmsg, int attr,
*
*
* Returns 0 on success, < 0 otherwise
* Returns 0 on success, < 0 otherwise
*/
*/
int
nla_put_u32
(
struct
nlmsg
*
nlmsg
,
int
attr
,
int
value
);
__hidden
extern
int
nla_put_u32
(
struct
nlmsg
*
nlmsg
,
int
attr
,
int
value
);
/*
/*
* nla_put_u16: copy an integer to a netlink message attribute
* nla_put_u16: copy an integer to a netlink message attribute
...
@@ -158,7 +157,7 @@ int nla_put_u32(struct nlmsg *nlmsg, int attr, int value);
...
@@ -158,7 +157,7 @@ int nla_put_u32(struct nlmsg *nlmsg, int attr, int value);
*
*
* Returns 0 on success, < 0 otherwise
* Returns 0 on success, < 0 otherwise
*/
*/
int
nla_put_u16
(
struct
nlmsg
*
nlmsg
,
int
attr
,
unsigned
short
value
);
__hidden
extern
int
nla_put_u16
(
struct
nlmsg
*
nlmsg
,
int
attr
,
unsigned
short
value
);
/*
/*
* nla_put_attr: add an attribute name to a netlink
* nla_put_attr: add an attribute name to a netlink
...
@@ -168,7 +167,7 @@ int nla_put_u16(struct nlmsg *nlmsg, int attr, unsigned short value);
...
@@ -168,7 +167,7 @@ int nla_put_u16(struct nlmsg *nlmsg, int attr, unsigned short value);
*
*
* Returns 0 on success, < 0 otherwise
* Returns 0 on success, < 0 otherwise
*/
*/
int
nla_put_attr
(
struct
nlmsg
*
nlmsg
,
int
attr
);
__hidden
extern
int
nla_put_attr
(
struct
nlmsg
*
nlmsg
,
int
attr
);
/*
/*
* nla_begin_nested: begin the nesting attribute
* nla_begin_nested: begin the nesting attribute
...
...
src/lxc/rexec.c
View file @
f15b126e
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
#include "macro.h"
#include "macro.h"
#include "memory_utils.h"
#include "memory_utils.h"
#include "process_utils.h"
#include "process_utils.h"
#include "rexec.h"
#include "string_utils.h"
#include "string_utils.h"
#include "syscall_wrappers.h"
#include "syscall_wrappers.h"
...
...
src/lxc/seccomp.c
View file @
f15b126e
...
@@ -317,7 +317,7 @@ enum lxc_hostarch_t {
...
@@ -317,7 +317,7 @@ enum lxc_hostarch_t {
lxc_seccomp_arch_unknown
=
999
,
lxc_seccomp_arch_unknown
=
999
,
};
};
int
get_hostarch
(
void
)
static
int
get_hostarch
(
void
)
{
{
struct
utsname
uts
;
struct
utsname
uts
;
if
(
uname
(
&
uts
)
<
0
)
{
if
(
uname
(
&
uts
)
<
0
)
{
...
@@ -351,8 +351,8 @@ int get_hostarch(void)
...
@@ -351,8 +351,8 @@ int get_hostarch(void)
return
lxc_seccomp_arch_unknown
;
return
lxc_seccomp_arch_unknown
;
}
}
s
cmp_filter_ctx
get_new_ctx
(
enum
lxc_hostarch_t
n_arch
,
s
tatic
scmp_filter_ctx
get_new_ctx
(
enum
lxc_hostarch_t
n_arch
,
uint32_t
default_policy_action
,
uint32_t
default_policy_action
,
bool
*
needs_merge
)
bool
*
needs_merge
)
{
{
int
ret
;
int
ret
;
uint32_t
arch
;
uint32_t
arch
;
...
@@ -485,8 +485,8 @@ scmp_filter_ctx get_new_ctx(enum lxc_hostarch_t n_arch,
...
@@ -485,8 +485,8 @@ scmp_filter_ctx get_new_ctx(enum lxc_hostarch_t n_arch,
return
ctx
;
return
ctx
;
}
}
bool
do_resolve_add_rule
(
uint32_t
arch
,
char
*
line
,
scmp_filter_ctx
ctx
,
static
bool
do_resolve_add_rule
(
uint32_t
arch
,
char
*
line
,
scmp_filter_ctx
ctx
,
struct
seccomp_v2_rule
*
rule
)
struct
seccomp_v2_rule
*
rule
)
{
{
int
i
,
nr
,
ret
;
int
i
,
nr
,
ret
;
struct
scmp_arg_cmp
arg_cmp
[
6
];
struct
scmp_arg_cmp
arg_cmp
[
6
];
...
...
src/lxc/start.c
View file @
f15b126e
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
#include "cgroup.h"
#include "cgroup.h"
#include "commands.h"
#include "commands.h"
#include "commands_utils.h"
#include "commands_utils.h"
#include "compiler.h"
#include "conf.h"
#include "conf.h"
#include "config.h"
#include "config.h"
#include "confile_utils.h"
#include "confile_utils.h"
...
...
src/lxc/storage/rbd.c
View file @
f15b126e
...
@@ -29,7 +29,7 @@ struct rbd_args {
...
@@ -29,7 +29,7 @@ struct rbd_args {
const
char
*
size
;
const
char
*
size
;
};
};
int
rbd_create_wrapper
(
void
*
data
)
static
int
rbd_create_wrapper
(
void
*
data
)
{
{
struct
rbd_args
*
args
=
data
;
struct
rbd_args
*
args
=
data
;
...
@@ -39,7 +39,7 @@ int rbd_create_wrapper(void *data)
...
@@ -39,7 +39,7 @@ int rbd_create_wrapper(void *data)
return
-
1
;
return
-
1
;
}
}
int
rbd_map_wrapper
(
void
*
data
)
static
int
rbd_map_wrapper
(
void
*
data
)
{
{
struct
rbd_args
*
args
=
data
;
struct
rbd_args
*
args
=
data
;
...
@@ -49,7 +49,7 @@ int rbd_map_wrapper(void *data)
...
@@ -49,7 +49,7 @@ int rbd_map_wrapper(void *data)
return
-
1
;
return
-
1
;
}
}
int
rbd_unmap_wrapper
(
void
*
data
)
static
int
rbd_unmap_wrapper
(
void
*
data
)
{
{
struct
rbd_args
*
args
=
data
;
struct
rbd_args
*
args
=
data
;
...
@@ -58,7 +58,7 @@ int rbd_unmap_wrapper(void *data)
...
@@ -58,7 +58,7 @@ int rbd_unmap_wrapper(void *data)
return
-
1
;
return
-
1
;
}
}
int
rbd_delete_wrapper
(
void
*
data
)
static
int
rbd_delete_wrapper
(
void
*
data
)
{
{
struct
rbd_args
*
args
=
data
;
struct
rbd_args
*
args
=
data
;
...
...
src/lxc/storage/storage.c
View file @
f15b126e
...
@@ -109,7 +109,7 @@ static const struct lxc_storage_ops lvm_ops = {
...
@@ -109,7 +109,7 @@ static const struct lxc_storage_ops lvm_ops = {
};
};
/* nbd */
/* nbd */
const
struct
lxc_storage_ops
nbd_ops
=
{
static
const
struct
lxc_storage_ops
nbd_ops
=
{
.
detect
=
&
nbd_detect
,
.
detect
=
&
nbd_detect
,
.
mount
=
&
nbd_mount
,
.
mount
=
&
nbd_mount
,
.
umount
=
&
nbd_umount
,
.
umount
=
&
nbd_umount
,
...
@@ -234,7 +234,7 @@ static const struct lxc_storage_type *storage_query(struct lxc_conf *conf)
...
@@ -234,7 +234,7 @@ static const struct lxc_storage_type *storage_query(struct lxc_conf *conf)
return
&
bdevs
[
i
];
return
&
bdevs
[
i
];
}
}
struct
lxc_storage
*
storage_get
(
const
char
*
type
)
st
atic
st
ruct
lxc_storage
*
storage_get
(
const
char
*
type
)
{
{
size_t
i
;
size_t
i
;
struct
lxc_storage
*
bdev
;
struct
lxc_storage
*
bdev
;
...
...
src/lxc/storage/zfs.c
View file @
f15b126e
...
@@ -28,7 +28,7 @@ struct zfs_args {
...
@@ -28,7 +28,7 @@ struct zfs_args {
void
*
argv
;
void
*
argv
;
};
};
int
zfs_detect_exec_wrapper
(
void
*
data
)
static
int
zfs_detect_exec_wrapper
(
void
*
data
)
{
{
struct
zfs_args
*
args
=
data
;
struct
zfs_args
*
args
=
data
;
...
@@ -38,7 +38,7 @@ int zfs_detect_exec_wrapper(void *data)
...
@@ -38,7 +38,7 @@ int zfs_detect_exec_wrapper(void *data)
return
-
1
;
return
-
1
;
}
}
int
zfs_create_exec_wrapper
(
void
*
args
)
static
int
zfs_create_exec_wrapper
(
void
*
args
)
{
{
struct
zfs_args
*
zfs_args
=
args
;
struct
zfs_args
*
zfs_args
=
args
;
...
@@ -47,7 +47,7 @@ int zfs_create_exec_wrapper(void *args)
...
@@ -47,7 +47,7 @@ int zfs_create_exec_wrapper(void *args)
return
-
1
;
return
-
1
;
}
}
int
zfs_delete_exec_wrapper
(
void
*
args
)
static
int
zfs_delete_exec_wrapper
(
void
*
args
)
{
{
struct
zfs_args
*
zfs_args
=
args
;
struct
zfs_args
*
zfs_args
=
args
;
...
@@ -56,7 +56,7 @@ int zfs_delete_exec_wrapper(void *args)
...
@@ -56,7 +56,7 @@ int zfs_delete_exec_wrapper(void *args)
return
-
1
;
return
-
1
;
}
}
int
zfs_snapshot_exec_wrapper
(
void
*
args
)
static
int
zfs_snapshot_exec_wrapper
(
void
*
args
)
{
{
struct
zfs_args
*
zfs_args
=
args
;
struct
zfs_args
*
zfs_args
=
args
;
...
@@ -65,7 +65,7 @@ int zfs_snapshot_exec_wrapper(void *args)
...
@@ -65,7 +65,7 @@ int zfs_snapshot_exec_wrapper(void *args)
return
-
1
;
return
-
1
;
}
}
int
zfs_clone_exec_wrapper
(
void
*
args
)
static
int
zfs_clone_exec_wrapper
(
void
*
args
)
{
{
struct
zfs_args
*
zfs_args
=
args
;
struct
zfs_args
*
zfs_args
=
args
;
...
@@ -76,7 +76,7 @@ int zfs_clone_exec_wrapper(void *args)
...
@@ -76,7 +76,7 @@ int zfs_clone_exec_wrapper(void *args)
return
-
1
;
return
-
1
;
}
}
int
zfs_get_parent_snapshot_exec_wrapper
(
void
*
args
)
static
int
zfs_get_parent_snapshot_exec_wrapper
(
void
*
args
)
{
{
struct
zfs_args
*
zfs_args
=
args
;
struct
zfs_args
*
zfs_args
=
args
;
...
...
src/lxc/utils.c
View file @
f15b126e
...
@@ -1544,7 +1544,7 @@ pop_stack:
...
@@ -1544,7 +1544,7 @@ pop_stack:
return
umounts
;
return
umounts
;
}
}
int
run_command_internal
(
char
*
buf
,
size_t
buf_size
,
int
(
*
child_fn
)(
void
*
),
void
*
args
,
bool
wait_status
)
static
int
run_command_internal
(
char
*
buf
,
size_t
buf_size
,
int
(
*
child_fn
)(
void
*
),
void
*
args
,
bool
wait_status
)
{
{
pid_t
child
;
pid_t
child
;
int
ret
,
fret
,
pipefd
[
2
];
int
ret
,
fret
,
pipefd
[
2
];
...
...
src/tests/Makefile.am
View file @
f15b126e
...
@@ -22,6 +22,7 @@ endif
...
@@ -22,6 +22,7 @@ endif
lxc_test_api_reboot_SOURCES
=
api_reboot.c
\
lxc_test_api_reboot_SOURCES
=
api_reboot.c
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/cgroups/cgfsng.c
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
...
@@ -32,6 +33,7 @@ lxc_test_api_reboot_SOURCES = api_reboot.c \
...
@@ -32,6 +33,7 @@ lxc_test_api_reboot_SOURCES = api_reboot.c \
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
...
@@ -69,6 +71,7 @@ endif
...
@@ -69,6 +71,7 @@ endif
lxc_test_apparmor_SOURCES
=
aa.c
\
lxc_test_apparmor_SOURCES
=
aa.c
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/cgroups/cgfsng.c
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
...
@@ -79,6 +82,7 @@ lxc_test_apparmor_SOURCES = aa.c \
...
@@ -79,6 +82,7 @@ lxc_test_apparmor_SOURCES = aa.c \
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
...
@@ -116,6 +120,7 @@ endif
...
@@ -116,6 +120,7 @@ endif
lxc_test_attach_SOURCES
=
attach.c
\
lxc_test_attach_SOURCES
=
attach.c
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/cgroups/cgfsng.c
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
...
@@ -126,6 +131,7 @@ lxc_test_attach_SOURCES = attach.c \
...
@@ -126,6 +131,7 @@ lxc_test_attach_SOURCES = attach.c \
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
...
@@ -164,6 +170,7 @@ lxc_test_basic_SOURCES = basic.c
...
@@ -164,6 +170,7 @@ lxc_test_basic_SOURCES = basic.c
lxc_test_cgpath_SOURCES
=
cgpath.c
\
lxc_test_cgpath_SOURCES
=
cgpath.c
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/cgroups/cgfsng.c
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
...
@@ -174,6 +181,7 @@ lxc_test_cgpath_SOURCES = cgpath.c \
...
@@ -174,6 +181,7 @@ lxc_test_cgpath_SOURCES = cgpath.c \
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
...
@@ -214,6 +222,7 @@ lxc_test_config_jump_table_SOURCES = config_jump_table.c \
...
@@ -214,6 +222,7 @@ lxc_test_config_jump_table_SOURCES = config_jump_table.c \
lxctest.h
\
lxctest.h
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/cgroups/cgfsng.c
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
...
@@ -224,6 +233,7 @@ lxc_test_config_jump_table_SOURCES = config_jump_table.c \
...
@@ -224,6 +233,7 @@ lxc_test_config_jump_table_SOURCES = config_jump_table.c \
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
...
@@ -272,6 +282,7 @@ lxc_test_list_SOURCES = list.c
...
@@ -272,6 +282,7 @@ lxc_test_list_SOURCES = list.c
lxc_test_locktests_SOURCES
=
locktests.c
\
lxc_test_locktests_SOURCES
=
locktests.c
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/cgroups/cgfsng.c
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
...
@@ -282,6 +293,7 @@ lxc_test_locktests_SOURCES = locktests.c \
...
@@ -282,6 +293,7 @@ lxc_test_locktests_SOURCES = locktests.c \
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
...
@@ -322,6 +334,7 @@ lxc_test_mount_injection_SOURCES = mount_injection.c \
...
@@ -322,6 +334,7 @@ lxc_test_mount_injection_SOURCES = mount_injection.c \
lxctest.h
\
lxctest.h
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/cgroups/cgfsng.c
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
...
@@ -332,6 +345,7 @@ lxc_test_mount_injection_SOURCES = mount_injection.c \
...
@@ -332,6 +345,7 @@ lxc_test_mount_injection_SOURCES = mount_injection.c \
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
...
@@ -370,6 +384,7 @@ lxc_test_parse_config_file_SOURCES = parse_config_file.c \
...
@@ -370,6 +384,7 @@ lxc_test_parse_config_file_SOURCES = parse_config_file.c \
lxctest.h
\
lxctest.h
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/cgroups/cgfsng.c
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
...
@@ -380,6 +395,7 @@ lxc_test_parse_config_file_SOURCES = parse_config_file.c \
...
@@ -380,6 +395,7 @@ lxc_test_parse_config_file_SOURCES = parse_config_file.c \
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
...
@@ -418,6 +434,7 @@ lxc_test_raw_clone_SOURCES = lxc_raw_clone.c \
...
@@ -418,6 +434,7 @@ lxc_test_raw_clone_SOURCES = lxc_raw_clone.c \
lxctest.h
\
lxctest.h
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/cgroups/cgfsng.c
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
...
@@ -428,6 +445,7 @@ lxc_test_raw_clone_SOURCES = lxc_raw_clone.c \
...
@@ -428,6 +445,7 @@ lxc_test_raw_clone_SOURCES = lxc_raw_clone.c \
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
...
@@ -480,6 +498,7 @@ lxc_test_utils_SOURCES = lxc-test-utils.c \
...
@@ -480,6 +498,7 @@ lxc_test_utils_SOURCES = lxc-test-utils.c \
lxctest.h
\
lxctest.h
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/caps.c ../lxc/caps.h
\
../lxc/cgroups/cgfsng.c
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h
\
...
@@ -490,6 +509,7 @@ lxc_test_utils_SOURCES = lxc-test-utils.c \
...
@@ -490,6 +509,7 @@ lxc_test_utils_SOURCES = lxc-test-utils.c \
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
../lxc/lxclock.c ../lxc/lxclock.h
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment