contain.o: contain.h common.h log.h mount.h net.h util.h uts.h
log.o: log.h common.h
mount.o: mount.h common.h log.h
-net.o: net.h common.h log.h
+net.o: net.h common.h log.h /usr/include/libnl3/netlink/route/link.h
+net.o: /usr/include/libnl3/netlink/netlink.h
+net.o: /usr/include/libnl3/netlink/netlink-compat.h
+net.o: /usr/include/libnl3/netlink/version.h
+net.o: /usr/include/libnl3/netlink/errno.h
+net.o: /usr/include/libnl3/netlink/types.h
+net.o: /usr/include/libnl3/netlink/handlers.h
+net.o: /usr/include/libnl3/netlink/netlink-kernel.h
+net.o: /usr/include/libnl3/netlink/socket.h
+net.o: /usr/include/libnl3/netlink/object.h
+net.o: /usr/include/libnl3/netlink/utils.h /usr/include/libnl3/netlink/list.h
+net.o: /usr/include/libnl3/netlink/cache.h /usr/include/libnl3/netlink/msg.h
+net.o: /usr/include/libnl3/netlink/attr.h /usr/include/libnl3/netlink/addr.h
+net.o: /usr/include/libnl3/netlink/data.h
+net.o: /usr/include/libnl3/netlink/route/link/macvlan.h
sandbox.o: sandbox.h common.h log.h seccomp/bpf-helper.h
subproc.o: subproc.h common.h contain.h log.h net.h sandbox.h user.h util.h
user.o: user.h common.h log.h util.h
*/
-#ifndef _CMDLINE_H
-#define _CMDLINE_H
+#ifndef NS_CMDLINE_H
+#define NS_CMDLINE_H
#include <sys/time.h>
#include <sys/resource.h>
*/
-#ifndef _COMMON_H
-#define _COMMON_H
+#ifndef NS_COMMON_H
+#define NS_COMMON_H
#include <limits.h>
#include <netinet/ip6.h>
#ifdef __clang__
static void __attribute__ ((unused)) _clang_cleanup_func(void (^*dfunc) (void))
{
- (*dfunc) ();
+ (*dfunc) ();
}
#define DEFER(a) void (^_STRMERGE(__defer_f_, __COUNTER__))(void) __attribute__((cleanup(_clang_cleanup_func))) __attribute__((unused)) = ^{ a; }
TAILQ_HEAD(mountptslist, mounts_t) mountpts;
};
-#endif /* _COMMON_H */
+#endif /* NS_COMMON_H */
*/
-#ifndef _CONTAIN_H
-#define _CONTAIN_H
+#ifndef NS_CONTAIN_H
+#define NS_CONTAIN_H
#include <stdbool.h>
bool containSetupFD(struct nsjconf_t *nsjconf, int fd_in, int fd_out, int fd_err, int fd_log);
bool containContain(struct nsjconf_t *nsjconf);
-#endif /* _CONTAIN_H */
+#endif /* NS_CONTAIN_H */
*/
-#ifndef _LOG_H
-#define _LOG_H
+#ifndef NS_LOG_H
+#define NS_LOG_H
#include <getopt.h>
#include <stdbool.h>
void logRedirectLogFD(int fd);
void logDirectlyToFD(const char *msg);
-#endif /* _LOG_H */
+#endif /* NS_LOG_H */
*/
-#ifndef _MOUNT_H
-#define _MOUNT_H
+#ifndef NS_MOUNT_H
+#define NS_MOUNT_H
#include <stdbool.h>
bool mountInitNs(struct nsjconf_t *nsjconf);
-#endif /* _MOUNT_H */
+#endif /* NS_MOUNT_H */
*/
-#ifndef _NET_H
-#define _NET_H
+#ifndef NS_NET_H
+#define NS_NET_H
#include <stdbool.h>
#include <stddef.h>
*/
-#ifndef _NSJAIL_H
-#define _NSJAIL_H
+#ifndef NS_NSJAIL_H
+#define NS_NSJAIL_H
#include "common.h"
*/
-#ifndef _SANDBOX_H
-#define _SANDBOX_H
+#ifndef NS_SANDBOX_H
+#define NS_SANDBOX_H
#include <stdbool.h>
bool sandboxApply(struct nsjconf_t *nsjconf);
-#endif /* _SANDBOX_H */
+#endif /* NS_SANDBOX_H */
*/
-#ifndef _PROC_H
-#define _PROC_H
+#ifndef NS_PROC_H
+#define NS_PROC_H
#include "common.h"
/* Returns the exit code of the first failing subprocess, or 0 if none fail */
int subprocReap(struct nsjconf_t *nsjconf);
-#endif /* _PROC_H */
+#endif /* NS_PROC_H */
*/
-#ifndef _USER_H
-#define _USER_H
+#ifndef NS_USER_H
+#define NS_USER_H
#include <stdbool.h>
bool userInitNsFromParent(struct nsjconf_t *nsjconf, pid_t pid);
-#endif /* _USER_H */
+#endif /* NS_USER_H */
*/
-#ifndef _UTIL_H
-#define _UTIL_H
+#ifndef NS_UTIL_H
+#define NS_UTIL_H
#include <stdbool.h>
#include <stdlib.h>
ssize_t utilReadFromFd(int fd, void *buf, size_t len);
bool utilWriteBufToFile(char *filename, const void *buf, size_t len, int open_flags);
-#endif /* _UTIL_H */
+#endif /* NS_UTIL_H */
*/
-#ifndef _UTS_H
-#define _UTS_H
+#ifndef NS_UTS_H
+#define NS_UTS_H
#include <stdbool.h>
#include <stddef.h>
bool utsInitNs(struct nsjconf_t *nsjconf);
-#endif /* _UTS_H */
+#endif /* NS_UTS_H */