2012-01-26 15:27:00 +04:00
|
|
|
#ifndef __CR_NS_H__
|
|
|
|
#define __CR_NS_H__
|
2012-06-19 15:53:00 +04:00
|
|
|
|
|
|
|
#include "crtools.h"
|
2012-10-08 18:59:36 +04:00
|
|
|
#include "pstree.h"
|
2012-06-19 15:53:00 +04:00
|
|
|
|
|
|
|
int dump_namespaces(struct pid *pid, unsigned int ns_flags);
|
2012-01-26 15:27:00 +04:00
|
|
|
int prepare_namespace(int pid, unsigned long clone_flags);
|
2012-03-27 12:01:14 +04:00
|
|
|
struct cr_options;
|
|
|
|
int try_show_namespaces(int pid, struct cr_options *);
|
2013-01-15 23:24:01 +04:00
|
|
|
|
|
|
|
struct ns_desc {
|
|
|
|
unsigned int cflag;
|
|
|
|
char *str;
|
|
|
|
};
|
|
|
|
|
|
|
|
int switch_ns(int pid, struct ns_desc *nd, int *rst);
|
|
|
|
int restore_ns(int rst, struct ns_desc *nd);
|
|
|
|
extern struct ns_desc pid_ns_desc;
|
2012-12-25 22:40:24 +04:00
|
|
|
|
|
|
|
#endif /* __CR_NS_H__ */
|