.. | .. |
---|
12 | 12 | #include <linux/ns_common.h> |
---|
13 | 13 | #include <linux/idr.h> |
---|
14 | 14 | |
---|
| 15 | +/* MAX_PID_NS_LEVEL is needed for limiting size of 'struct pid' */ |
---|
| 16 | +#define MAX_PID_NS_LEVEL 32 |
---|
15 | 17 | |
---|
16 | 18 | struct fs_pin; |
---|
17 | | - |
---|
18 | | -enum { /* definitions for pid_namespace's hide_pid field */ |
---|
19 | | - HIDEPID_OFF = 0, |
---|
20 | | - HIDEPID_NO_ACCESS = 1, |
---|
21 | | - HIDEPID_INVISIBLE = 2, |
---|
22 | | -}; |
---|
23 | 19 | |
---|
24 | 20 | struct pid_namespace { |
---|
25 | 21 | struct kref kref; |
---|
.. | .. |
---|
30 | 26 | struct kmem_cache *pid_cachep; |
---|
31 | 27 | unsigned int level; |
---|
32 | 28 | struct pid_namespace *parent; |
---|
33 | | -#ifdef CONFIG_PROC_FS |
---|
34 | | - struct vfsmount *proc_mnt; |
---|
35 | | - struct dentry *proc_self; |
---|
36 | | - struct dentry *proc_thread_self; |
---|
37 | | -#endif |
---|
38 | 29 | #ifdef CONFIG_BSD_PROCESS_ACCT |
---|
39 | 30 | struct fs_pin *bacct; |
---|
40 | 31 | #endif |
---|
41 | 32 | struct user_namespace *user_ns; |
---|
42 | 33 | struct ucounts *ucounts; |
---|
43 | | - struct work_struct proc_work; |
---|
44 | | - kgid_t pid_gid; |
---|
45 | | - int hide_pid; |
---|
46 | 34 | int reboot; /* group exit code if this pidns was rebooted */ |
---|
47 | 35 | struct ns_common ns; |
---|
48 | 36 | } __randomize_layout; |
---|