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
2e17f1e8
Unverified
Commit
2e17f1e8
authored
Jul 21, 2020
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
start: hide unnecessary symbols
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
3819280b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
19 deletions
+45
-19
Makefile.am
src/lxc/Makefile.am
+0
-0
start.h
src/lxc/start.h
+18
-19
Makefile.am
src/tests/Makefile.am
+27
-0
No files found.
src/lxc/Makefile.am
View file @
2e17f1e8
This diff is collapsed.
Click to expand it.
src/lxc/start.h
View file @
2e17f1e8
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
#include <sys/socket.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/un.h>
#include "compiler.h"
#include "conf.h"
#include "conf.h"
#include "macro.h"
#include "macro.h"
#include "namespace.h"
#include "namespace.h"
...
@@ -140,20 +141,17 @@ struct lxc_operations {
...
@@ -140,20 +141,17 @@ struct lxc_operations {
int
(
*
post_start
)(
struct
lxc_handler
*
,
void
*
);
int
(
*
post_start
)(
struct
lxc_handler
*
,
void
*
);
};
};
extern
int
lxc_poll
(
const
char
*
name
,
struct
lxc_handler
*
handler
);
__hidden
extern
int
lxc_poll
(
const
char
*
name
,
struct
lxc_handler
*
handler
);
extern
int
lxc_set_state
(
const
char
*
name
,
struct
lxc_handler
*
handler
,
__hidden
extern
int
lxc_set_state
(
const
char
*
name
,
struct
lxc_handler
*
handler
,
lxc_state_t
state
);
lxc_state_t
state
);
__hidden
extern
int
lxc_serve_state_clients
(
const
char
*
name
,
struct
lxc_handler
*
handler
,
extern
int
lxc_serve_state_clients
(
const
char
*
name
,
lxc_state_t
state
);
struct
lxc_handler
*
handler
,
__hidden
extern
void
lxc_abort
(
struct
lxc_handler
*
handler
);
lxc_state_t
state
);
__hidden
extern
struct
lxc_handler
*
lxc_init_handler
(
struct
lxc_handler
*
old
,
const
char
*
name
,
extern
void
lxc_abort
(
struct
lxc_handler
*
handler
);
struct
lxc_conf
*
conf
,
const
char
*
lxcpath
,
extern
struct
lxc_handler
*
lxc_init_handler
(
struct
lxc_handler
*
old
,
bool
daemonize
);
const
char
*
name
,
__hidden
extern
void
lxc_put_handler
(
struct
lxc_handler
*
handler
);
struct
lxc_conf
*
conf
,
__hidden
extern
int
lxc_init
(
const
char
*
name
,
struct
lxc_handler
*
handler
);
const
char
*
lxcpath
,
bool
daemonize
);
__hidden
extern
void
lxc_end
(
struct
lxc_handler
*
handler
);
extern
void
lxc_put_handler
(
struct
lxc_handler
*
handler
);
extern
int
lxc_init
(
const
char
*
name
,
struct
lxc_handler
*
handler
);
extern
void
lxc_end
(
struct
lxc_handler
*
handler
);
/* lxc_check_inherited: Check for any open file descriptors and close them if
/* lxc_check_inherited: Check for any open file descriptors and close them if
* requested.
* requested.
...
@@ -162,16 +160,17 @@ extern void lxc_end(struct lxc_handler *handler);
...
@@ -162,16 +160,17 @@ extern void lxc_end(struct lxc_handler *handler);
* @param[in] fds_to_ignore Array of file descriptors to ignore.
* @param[in] fds_to_ignore Array of file descriptors to ignore.
* @param[in] len_fds Length of fds_to_ignore array.
* @param[in] len_fds Length of fds_to_ignore array.
*/
*/
extern
int
lxc_check_inherited
(
struct
lxc_conf
*
conf
,
bool
closeall
,
__hidden
extern
int
lxc_check_inherited
(
struct
lxc_conf
*
conf
,
bool
closeall
,
int
*
fds_to_ignore
,
int
*
fds_to_ignore
,
size_t
len_fds
);
size_t
len_fds
);
static
inline
int
inherit_fds
(
struct
lxc_handler
*
handler
,
bool
closeall
)
static
inline
int
inherit_fds
(
struct
lxc_handler
*
handler
,
bool
closeall
)
{
{
return
lxc_check_inherited
(
handler
->
conf
,
closeall
,
handler
->
keep_fds
,
return
lxc_check_inherited
(
handler
->
conf
,
closeall
,
handler
->
keep_fds
,
ARRAY_SIZE
(
handler
->
keep_fds
));
ARRAY_SIZE
(
handler
->
keep_fds
));
}
}
extern
int
__lxc_start
(
struct
lxc_handler
*
,
struct
lxc_operations
*
,
void
*
,
const
char
*
,
bool
,
int
*
);
extern
int
resolve_clone_flags
(
struct
lxc_handler
*
handler
);
__hidden
extern
int
__lxc_start
(
struct
lxc_handler
*
,
struct
lxc_operations
*
,
void
*
,
const
char
*
,
bool
,
int
*
);
__hidden
extern
int
resolve_clone_flags
(
struct
lxc_handler
*
handler
);
#endif
#endif
src/tests/Makefile.am
View file @
2e17f1e8
...
@@ -15,16 +15,20 @@ lxc_test_api_reboot_SOURCES = api_reboot.c \
...
@@ -15,16 +15,20 @@ lxc_test_api_reboot_SOURCES = api_reboot.c \
../lxc/conf.c ../lxc/conf.h
\
../lxc/conf.c ../lxc/conf.h
\
../lxc/confile.c ../lxc/confile.h
\
../lxc/confile.c ../lxc/confile.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/file_utils.c ../lxc/file_utils.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/mainloop.c ../lxc/mainloop.h
\
../lxc/mainloop.c ../lxc/mainloop.h
\
../lxc/monitor.c ../lxc/monitor.h
\
../lxc/namespace.c ../lxc/namespace.h
\
../lxc/namespace.c ../lxc/namespace.h
\
../lxc/network.c ../lxc/network.h
\
../lxc/network.c ../lxc/network.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/ringbuf.c ../lxc/ringbuf.h
\
../lxc/ringbuf.c ../lxc/ringbuf.h
\
../lxc/start.c ../lxc/start.h
\
../lxc/string_utils.c ../lxc/string_utils.h
../lxc/string_utils.c ../lxc/string_utils.h
if
ENABLE_SECCOMP
if
ENABLE_SECCOMP
lxc_test_api_reboot_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
lxc_test_api_reboot_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
...
@@ -39,16 +43,20 @@ lxc_test_attach_SOURCES = attach.c \
...
@@ -39,16 +43,20 @@ lxc_test_attach_SOURCES = attach.c \
../lxc/conf.c ../lxc/conf.h
\
../lxc/conf.c ../lxc/conf.h
\
../lxc/confile.c ../lxc/confile.h
\
../lxc/confile.c ../lxc/confile.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/file_utils.c ../lxc/file_utils.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/mainloop.c ../lxc/mainloop.h
\
../lxc/mainloop.c ../lxc/mainloop.h
\
../lxc/monitor.c ../lxc/monitor.h
\
../lxc/namespace.c ../lxc/namespace.h
\
../lxc/namespace.c ../lxc/namespace.h
\
../lxc/network.c ../lxc/network.h
\
../lxc/network.c ../lxc/network.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/ringbuf.c ../lxc/ringbuf.h
\
../lxc/ringbuf.c ../lxc/ringbuf.h
\
../lxc/start.c ../lxc/start.h
\
../lxc/string_utils.c ../lxc/string_utils.h
../lxc/string_utils.c ../lxc/string_utils.h
if
ENABLE_SECCOMP
if
ENABLE_SECCOMP
lxc_test_attach_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
lxc_test_attach_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
...
@@ -63,16 +71,20 @@ lxc_test_cgpath_SOURCES = cgpath.c \
...
@@ -63,16 +71,20 @@ lxc_test_cgpath_SOURCES = cgpath.c \
../lxc/conf.c ../lxc/conf.h
\
../lxc/conf.c ../lxc/conf.h
\
../lxc/confile.c ../lxc/confile.h
\
../lxc/confile.c ../lxc/confile.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/file_utils.c ../lxc/file_utils.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/mainloop.c ../lxc/mainloop.h
\
../lxc/mainloop.c ../lxc/mainloop.h
\
../lxc/monitor.c ../lxc/monitor.h
\
../lxc/namespace.c ../lxc/namespace.h
\
../lxc/namespace.c ../lxc/namespace.h
\
../lxc/network.c ../lxc/network.h
\
../lxc/network.c ../lxc/network.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/ringbuf.c ../lxc/ringbuf.h
\
../lxc/ringbuf.c ../lxc/ringbuf.h
\
../lxc/start.c ../lxc/start.h
\
../lxc/string_utils.c ../lxc/string_utils.h
../lxc/string_utils.c ../lxc/string_utils.h
if
ENABLE_SECCOMP
if
ENABLE_SECCOMP
lxc_test_cgpath_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
lxc_test_cgpath_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
...
@@ -89,16 +101,20 @@ lxc_test_config_jump_table_SOURCES = config_jump_table.c \
...
@@ -89,16 +101,20 @@ lxc_test_config_jump_table_SOURCES = config_jump_table.c \
../lxc/conf.c ../lxc/conf.h
\
../lxc/conf.c ../lxc/conf.h
\
../lxc/confile.c ../lxc/confile.h
\
../lxc/confile.c ../lxc/confile.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/file_utils.c ../lxc/file_utils.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/mainloop.c ../lxc/mainloop.h
\
../lxc/mainloop.c ../lxc/mainloop.h
\
../lxc/monitor.c ../lxc/monitor.h
\
../lxc/namespace.c ../lxc/namespace.h
\
../lxc/namespace.c ../lxc/namespace.h
\
../lxc/network.c ../lxc/network.h
\
../lxc/network.c ../lxc/network.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/ringbuf.c ../lxc/ringbuf.h
\
../lxc/ringbuf.c ../lxc/ringbuf.h
\
../lxc/start.c ../lxc/start.h
\
../lxc/string_utils.c ../lxc/string_utils.h
../lxc/string_utils.c ../lxc/string_utils.h
if
ENABLE_SECCOMP
if
ENABLE_SECCOMP
lxc_test_config_jump_table_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
lxc_test_config_jump_table_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
...
@@ -131,18 +147,25 @@ lxc_test_parse_config_file_SOURCES = parse_config_file.c \
...
@@ -131,18 +147,25 @@ 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/commands.c ../lxc/commands.h
\
../lxc/commands_utils.c ../lxc/commands_utils.h
\
../lxc/conf.c ../lxc/conf.h
\
../lxc/conf.c ../lxc/conf.h
\
../lxc/confile.c ../lxc/confile.h
\
../lxc/confile.c ../lxc/confile.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/file_utils.c ../lxc/file_utils.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/mainloop.c ../lxc/mainloop.h
\
../lxc/monitor.c ../lxc/monitor.h
\
../lxc/namespace.c ../lxc/namespace.h
\
../lxc/namespace.c ../lxc/namespace.h
\
../lxc/network.c ../lxc/network.h
\
../lxc/network.c ../lxc/network.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/ringbuf.c ../lxc/ringbuf.h
\
../lxc/ringbuf.c ../lxc/ringbuf.h
\
../lxc/start.c ../lxc/start.h
\
../lxc/string_utils.c ../lxc/string_utils.h
../lxc/string_utils.c ../lxc/string_utils.h
if
ENABLE_SECCOMP
if
ENABLE_SECCOMP
lxc_test_parse_config_file_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
lxc_test_parse_config_file_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
...
@@ -180,16 +203,20 @@ lxc_test_utils_SOURCES = lxc-test-utils.c \
...
@@ -180,16 +203,20 @@ lxc_test_utils_SOURCES = lxc-test-utils.c \
../lxc/conf.c ../lxc/conf.h
\
../lxc/conf.c ../lxc/conf.h
\
../lxc/confile.c ../lxc/confile.h
\
../lxc/confile.c ../lxc/confile.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/confile_utils.c ../lxc/confile_utils.h
\
../lxc/error.c ../lxc/error.h
\
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/file_utils.c ../lxc/file_utils.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/mainloop.c ../lxc/mainloop.h
\
../lxc/mainloop.c ../lxc/mainloop.h
\
../lxc/monitor.c ../lxc/monitor.h
\
../lxc/namespace.c ../lxc/namespace.h
\
../lxc/namespace.c ../lxc/namespace.h
\
../lxc/network.c ../lxc/network.h
\
../lxc/network.c ../lxc/network.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/parse.c ../lxc/parse.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/process_utils.c ../lxc/process_utils.h
\
../lxc/ringbuf.c ../lxc/ringbuf.h
\
../lxc/ringbuf.c ../lxc/ringbuf.h
\
../lxc/start.c ../lxc/start.h
\
../lxc/string_utils.c ../lxc/string_utils.h
../lxc/string_utils.c ../lxc/string_utils.h
if
ENABLE_SECCOMP
if
ENABLE_SECCOMP
lxc_test_utils_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.h
lxc_test_utils_SOURCES
+=
../lxc/seccomp.c ../lxc/lxcseccomp.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