diff options
Diffstat (limited to 'include/linux/pid_namespace.h')
| -rw-r--r-- | include/linux/pid_namespace.h | 11 | 
1 files changed, 8 insertions, 3 deletions
diff --git a/include/linux/pid_namespace.h b/include/linux/pid_namespace.h index 65e3e87eacc..bf285999273 100644 --- a/include/linux/pid_namespace.h +++ b/include/linux/pid_namespace.h @@ -21,6 +21,7 @@ struct pid_namespace {  	struct kref kref;  	struct pidmap pidmap[PIDMAP_ENTRIES];  	int last_pid; +	int nr_hashed;  	struct task_struct *child_reaper;  	struct kmem_cache *pid_cachep;  	unsigned int level; @@ -31,9 +32,12 @@ struct pid_namespace {  #ifdef CONFIG_BSD_PROCESS_ACCT  	struct bsd_acct_struct *bacct;  #endif +	struct user_namespace *user_ns; +	struct work_struct proc_work;  	kgid_t pid_gid;  	int hide_pid;  	int reboot;	/* group exit code if this pidns was rebooted */ +	unsigned int proc_inum;  };  extern struct pid_namespace init_pid_ns; @@ -46,7 +50,8 @@ static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns)  	return ns;  } -extern struct pid_namespace *copy_pid_ns(unsigned long flags, struct pid_namespace *ns); +extern struct pid_namespace *copy_pid_ns(unsigned long flags, +	struct user_namespace *user_ns, struct pid_namespace *ns);  extern void zap_pid_ns_processes(struct pid_namespace *pid_ns);  extern int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd);  extern void put_pid_ns(struct pid_namespace *ns); @@ -59,8 +64,8 @@ static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns)  	return ns;  } -static inline struct pid_namespace * -copy_pid_ns(unsigned long flags, struct pid_namespace *ns) +static inline struct pid_namespace *copy_pid_ns(unsigned long flags, +	struct user_namespace *user_ns, struct pid_namespace *ns)  {  	if (flags & CLONE_NEWPID)  		ns = ERR_PTR(-EINVAL);  |