Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
binhooks_PROGRAMS = \
unmount-namespace
+AM_CFLAGS += -I $(top_srcdir)/src \
+ -I $(top_srcdir)/src/include
+
unmount_namespace_SOURCES = \
unmount-namespace.c
* namespaces are gone.
*/
-#define _GNU_SOURCE /* setns */
+#include "config.h"
+
#include <stdio.h> /* fdopen, getmntent, endmntent */
#include <stdlib.h> /* malloc, qsort */
#include <unistd.h> /* close */
#include <fcntl.h> /* openat, open */
#include <errno.h> /* errno */
-#include <../src/config.h>
-
#if IS_BIONIC
#include "lxcmntent.h"
#else
add_project_arguments('-include', 'config.h', language : 'c')
+subdir('hooks')
subdir('src/include')
subdir('src/lxc')
subdir('src/lxc/tools')
dependencies : liblxc_dep,
install : true)
+hook_programs = []
+
+hook_programs += executable(
+ 'unmount-namespace',
+ hooks_unmount_namespace_sources,
+ include_directories : hooks_include_directories,
+ install : true,
+ install_dir : lxchookdir)
+
found_syscalls = []
missing_syscalls = []