hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/pid_namespace.h
....@@ -12,14 +12,10 @@
1212 #include <linux/ns_common.h>
1313 #include <linux/idr.h>
1414
15
+/* MAX_PID_NS_LEVEL is needed for limiting size of 'struct pid' */
16
+#define MAX_PID_NS_LEVEL 32
1517
1618 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
-};
2319
2420 struct pid_namespace {
2521 struct kref kref;
....@@ -30,19 +26,11 @@
3026 struct kmem_cache *pid_cachep;
3127 unsigned int level;
3228 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
3829 #ifdef CONFIG_BSD_PROCESS_ACCT
3930 struct fs_pin *bacct;
4031 #endif
4132 struct user_namespace *user_ns;
4233 struct ucounts *ucounts;
43
- struct work_struct proc_work;
44
- kgid_t pid_gid;
45
- int hide_pid;
4634 int reboot; /* group exit code if this pidns was rebooted */
4735 struct ns_common ns;
4836 } __randomize_layout;