process_utils: hide unnecessary symbols

parent 64bcba9f
...@@ -343,6 +343,7 @@ lxc_attach_SOURCES = tools/lxc_attach.c \ ...@@ -343,6 +343,7 @@ lxc_attach_SOURCES = tools/lxc_attach.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
rexec.c rexec.h \ rexec.c rexec.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
...@@ -363,6 +364,7 @@ lxc_autostart_SOURCES = tools/lxc_autostart.c \ ...@@ -363,6 +364,7 @@ lxc_autostart_SOURCES = tools/lxc_autostart.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_autostart_SOURCES += seccomp.c lxcseccomp.h lxc_autostart_SOURCES += seccomp.c lxcseccomp.h
...@@ -382,6 +384,7 @@ lxc_cgroup_SOURCES = tools/lxc_cgroup.c \ ...@@ -382,6 +384,7 @@ lxc_cgroup_SOURCES = tools/lxc_cgroup.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_cgroup_SOURCES += seccomp.c lxcseccomp.h lxc_cgroup_SOURCES += seccomp.c lxcseccomp.h
...@@ -401,6 +404,7 @@ lxc_config_SOURCES = tools/lxc_config.c \ ...@@ -401,6 +404,7 @@ lxc_config_SOURCES = tools/lxc_config.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_config_SOURCES += seccomp.c lxcseccomp.h lxc_config_SOURCES += seccomp.c lxcseccomp.h
...@@ -420,6 +424,7 @@ lxc_console_SOURCES = tools/lxc_console.c \ ...@@ -420,6 +424,7 @@ lxc_console_SOURCES = tools/lxc_console.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_console_SOURCES += seccomp.c lxcseccomp.h lxc_console_SOURCES += seccomp.c lxcseccomp.h
...@@ -439,6 +444,7 @@ lxc_destroy_SOURCES = tools/lxc_destroy.c \ ...@@ -439,6 +444,7 @@ lxc_destroy_SOURCES = tools/lxc_destroy.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_destroy_SOURCES += seccomp.c lxcseccomp.h lxc_destroy_SOURCES += seccomp.c lxcseccomp.h
...@@ -458,6 +464,7 @@ lxc_device_SOURCES = tools/lxc_device.c \ ...@@ -458,6 +464,7 @@ lxc_device_SOURCES = tools/lxc_device.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_device_SOURCES += seccomp.c lxcseccomp.h lxc_device_SOURCES += seccomp.c lxcseccomp.h
...@@ -477,6 +484,7 @@ lxc_execute_SOURCES = tools/lxc_execute.c \ ...@@ -477,6 +484,7 @@ lxc_execute_SOURCES = tools/lxc_execute.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_execute_SOURCES += seccomp.c lxcseccomp.h lxc_execute_SOURCES += seccomp.c lxcseccomp.h
...@@ -496,6 +504,7 @@ lxc_freeze_SOURCES = tools/lxc_freeze.c \ ...@@ -496,6 +504,7 @@ lxc_freeze_SOURCES = tools/lxc_freeze.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_freeze_SOURCES += seccomp.c lxcseccomp.h lxc_freeze_SOURCES += seccomp.c lxcseccomp.h
...@@ -515,6 +524,7 @@ lxc_info_SOURCES = tools/lxc_info.c \ ...@@ -515,6 +524,7 @@ lxc_info_SOURCES = tools/lxc_info.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_info_SOURCES += seccomp.c lxcseccomp.h lxc_info_SOURCES += seccomp.c lxcseccomp.h
...@@ -536,6 +546,7 @@ lxc_monitor_SOURCES = tools/lxc_monitor.c \ ...@@ -536,6 +546,7 @@ lxc_monitor_SOURCES = tools/lxc_monitor.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_monitor_SOURCES += seccomp.c lxcseccomp.h lxc_monitor_SOURCES += seccomp.c lxcseccomp.h
...@@ -556,6 +567,7 @@ lxc_ls_SOURCES = tools/lxc_ls.c \ ...@@ -556,6 +567,7 @@ lxc_ls_SOURCES = tools/lxc_ls.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_ls_SOURCES += seccomp.c lxcseccomp.h lxc_ls_SOURCES += seccomp.c lxcseccomp.h
...@@ -575,6 +587,7 @@ lxc_copy_SOURCES = tools/lxc_copy.c \ ...@@ -575,6 +587,7 @@ lxc_copy_SOURCES = tools/lxc_copy.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
storage/storage_utils.c storage/storage_utils.h \ storage/storage_utils.c storage/storage_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
...@@ -595,6 +608,7 @@ lxc_start_SOURCES = tools/lxc_start.c \ ...@@ -595,6 +608,7 @@ lxc_start_SOURCES = tools/lxc_start.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_start_SOURCES += seccomp.c lxcseccomp.h lxc_start_SOURCES += seccomp.c lxcseccomp.h
...@@ -615,6 +629,7 @@ lxc_stop_SOURCES = tools/lxc_stop.c \ ...@@ -615,6 +629,7 @@ lxc_stop_SOURCES = tools/lxc_stop.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_stop_SOURCES += seccomp.c lxcseccomp.h lxc_stop_SOURCES += seccomp.c lxcseccomp.h
...@@ -635,6 +650,7 @@ lxc_top_SOURCES = tools/lxc_top.c \ ...@@ -635,6 +650,7 @@ lxc_top_SOURCES = tools/lxc_top.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_top_SOURCES += seccomp.c lxcseccomp.h lxc_top_SOURCES += seccomp.c lxcseccomp.h
...@@ -654,6 +670,7 @@ lxc_unfreeze_SOURCES = tools/lxc_unfreeze.c \ ...@@ -654,6 +670,7 @@ lxc_unfreeze_SOURCES = tools/lxc_unfreeze.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_unfreeze_SOURCES += seccomp.c lxcseccomp.h lxc_unfreeze_SOURCES += seccomp.c lxcseccomp.h
...@@ -673,6 +690,7 @@ lxc_unshare_SOURCES = tools/lxc_unshare.c \ ...@@ -673,6 +690,7 @@ lxc_unshare_SOURCES = tools/lxc_unshare.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h \ string_utils.c string_utils.h \
syscall_numbers.h \ syscall_numbers.h \
syscall_wrappers.h syscall_wrappers.h
...@@ -694,6 +712,7 @@ lxc_wait_SOURCES = tools/lxc_wait.c \ ...@@ -694,6 +712,7 @@ lxc_wait_SOURCES = tools/lxc_wait.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_wait_SOURCES += seccomp.c lxcseccomp.h lxc_wait_SOURCES += seccomp.c lxcseccomp.h
...@@ -713,6 +732,7 @@ lxc_create_SOURCES = tools/lxc_create.c \ ...@@ -713,6 +732,7 @@ lxc_create_SOURCES = tools/lxc_create.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
storage/storage_utils.c storage/storage_utils.h \ storage/storage_utils.c storage/storage_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
...@@ -733,6 +753,7 @@ lxc_snapshot_SOURCES = tools/lxc_snapshot.c \ ...@@ -733,6 +753,7 @@ lxc_snapshot_SOURCES = tools/lxc_snapshot.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_snapshot_SOURCES += seccomp.c lxcseccomp.h lxc_snapshot_SOURCES += seccomp.c lxcseccomp.h
...@@ -752,6 +773,7 @@ lxc_checkpoint_SOURCES = tools/lxc_checkpoint.c \ ...@@ -752,6 +773,7 @@ lxc_checkpoint_SOURCES = tools/lxc_checkpoint.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h string_utils.c string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_checkpoint_SOURCES += seccomp.c lxcseccomp.h lxc_checkpoint_SOURCES += seccomp.c lxcseccomp.h
...@@ -841,6 +863,7 @@ lxc_usernsexec_SOURCES = cmd/lxc_usernsexec.c \ ...@@ -841,6 +863,7 @@ lxc_usernsexec_SOURCES = cmd/lxc_usernsexec.c \
network.c network.h \ network.c network.h \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h \ string_utils.c string_utils.h \
syscall_wrappers.h \ syscall_wrappers.h \
utils.c utils.h utils.c utils.h
......
...@@ -209,7 +209,7 @@ int clone(int (*fn)(void *), void *child_stack, int flags, void *arg, ... ...@@ -209,7 +209,7 @@ int clone(int (*fn)(void *), void *child_stack, int flags, void *arg, ...
* - should call lxc_raw_getpid(): * - should call lxc_raw_getpid():
* The child should use lxc_raw_getpid() to retrieve its pid. * The child should use lxc_raw_getpid() to retrieve its pid.
*/ */
extern pid_t lxc_clone(int (*fn)(void *), void *arg, int flags, int *pidfd); __hidden extern pid_t lxc_clone(int (*fn)(void *), void *arg, int flags, int *pidfd);
/* /*
...@@ -239,8 +239,8 @@ extern pid_t lxc_clone(int (*fn)(void *), void *arg, int flags, int *pidfd); ...@@ -239,8 +239,8 @@ extern pid_t lxc_clone(int (*fn)(void *), void *arg, int flags, int *pidfd);
* - must call lxc_raw_getpid(): * - must call lxc_raw_getpid():
* The child must use lxc_raw_getpid() to retrieve its pid. * The child must use lxc_raw_getpid() to retrieve its pid.
*/ */
extern pid_t lxc_raw_clone(unsigned long flags, int *pidfd); __hidden extern pid_t lxc_raw_clone(unsigned long flags, int *pidfd);
extern pid_t lxc_raw_legacy_clone(unsigned long flags, int *pidfd); __hidden extern pid_t lxc_raw_legacy_clone(unsigned long flags, int *pidfd);
/* /*
* lxc_raw_clone_cb() - create a new process * lxc_raw_clone_cb() - create a new process
...@@ -253,8 +253,8 @@ extern pid_t lxc_raw_legacy_clone(unsigned long flags, int *pidfd); ...@@ -253,8 +253,8 @@ extern pid_t lxc_raw_legacy_clone(unsigned long flags, int *pidfd);
* All other comments that apply to lxc_raw_clone() apply to lxc_raw_clone_cb() * All other comments that apply to lxc_raw_clone() apply to lxc_raw_clone_cb()
* as well. * as well.
*/ */
extern pid_t lxc_raw_clone_cb(int (*fn)(void *), void *args, __hidden extern pid_t lxc_raw_clone_cb(int (*fn)(void *), void *args, unsigned long flags,
unsigned long flags, int *pidfd); int *pidfd);
#ifndef HAVE_EXECVEAT #ifndef HAVE_EXECVEAT
static inline int execveat(int dirfd, const char *pathname, char *const argv[], static inline int execveat(int dirfd, const char *pathname, char *const argv[],
...@@ -285,7 +285,7 @@ static inline pid_t lxc_raw_gettid(void) ...@@ -285,7 +285,7 @@ static inline pid_t lxc_raw_gettid(void)
#endif #endif
} }
extern int lxc_raw_pidfd_send_signal(int pidfd, int sig, siginfo_t *info, __hidden extern int lxc_raw_pidfd_send_signal(int pidfd, int sig, siginfo_t *info,
unsigned int flags); unsigned int flags);
#endif /* __LXC_PROCESS_UTILS_H */ #endif /* __LXC_PROCESS_UTILS_H */
...@@ -23,6 +23,7 @@ lxc_test_api_reboot_SOURCES = api_reboot.c \ ...@@ -23,6 +23,7 @@ lxc_test_api_reboot_SOURCES = api_reboot.c \
../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/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
...@@ -45,6 +46,7 @@ lxc_test_attach_SOURCES = attach.c \ ...@@ -45,6 +46,7 @@ lxc_test_attach_SOURCES = attach.c \
../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/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
...@@ -67,6 +69,7 @@ lxc_test_cgpath_SOURCES = cgpath.c \ ...@@ -67,6 +69,7 @@ lxc_test_cgpath_SOURCES = cgpath.c \
../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/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
...@@ -91,6 +94,7 @@ lxc_test_config_jump_table_SOURCES = config_jump_table.c \ ...@@ -91,6 +94,7 @@ lxc_test_config_jump_table_SOURCES = config_jump_table.c \
../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/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
...@@ -133,6 +137,7 @@ lxc_test_parse_config_file_SOURCES = parse_config_file.c \ ...@@ -133,6 +137,7 @@ lxc_test_parse_config_file_SOURCES = parse_config_file.c \
../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/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
...@@ -178,6 +183,7 @@ lxc_test_utils_SOURCES = lxc-test-utils.c \ ...@@ -178,6 +183,7 @@ lxc_test_utils_SOURCES = lxc-test-utils.c \
../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/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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment