diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-05-01 08:47:44 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-05-01 08:47:44 -0700 | 
| commit | bf61c8840efe60fd8f91446860b63338fb424158 (patch) | |
| tree | 7a71832407a4f0d6346db773343f4c3ae2257b19 /include/linux/pid_namespace.h | |
| parent | 5846115b30f3a881e542c8bfde59a699c1c13740 (diff) | |
| parent | 0c6a61657da78098472fd0eb71cc01f2387fa1bb (diff) | |
| download | olio-linux-3.10-bf61c8840efe60fd8f91446860b63338fb424158.tar.xz olio-linux-3.10-bf61c8840efe60fd8f91446860b63338fb424158.zip  | |
Merge branch 'next' into for-linus
Prepare first set of updates for 3.10 merge window.
Diffstat (limited to 'include/linux/pid_namespace.h')
| -rw-r--r-- | include/linux/pid_namespace.h | 13 | 
1 files changed, 10 insertions, 3 deletions
diff --git a/include/linux/pid_namespace.h b/include/linux/pid_namespace.h index 65e3e87eacc..215e5e3dda1 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; +	unsigned int nr_hashed;  	struct task_struct *child_reaper;  	struct kmem_cache *pid_cachep;  	unsigned int level; @@ -31,13 +32,18 @@ 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; +#define PIDNS_HASH_ADDING (1U << 31) +  #ifdef CONFIG_PID_NS  static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns)  { @@ -46,7 +52,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 +66,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);  |