#ifndef __LXC_START_H
#define __LXC_START_H
-#include <linux/sched.h>
+#include "config.h"
+
#include <sched.h>
#include <signal.h>
#include <stdbool.h>
};
struct execute_args {
- char *init_path;
- int init_fd;
char *const *argv;
int quiet;
};
__hidden extern int resolve_clone_flags(struct lxc_handler *handler);
__hidden extern void lxc_expose_namespace_environment(const struct lxc_handler *handler);
+static inline bool container_uses_namespace(const struct lxc_handler *handler,
+ unsigned int ns_flag)
+{
+ return (handler->ns_clone_flags & ns_flag);
+}
+
#endif