summaryrefslogtreecommitdiff
path: root/include/linux/pid_types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-12-11 21:03:22 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-12-21 03:26:31 +0300
commit6d5e9d63683042a8d344cd5d6f9cf23613864a29 (patch)
treea0afec6744c6d7429fe3eebeeef20c4554b20209 /include/linux/pid_types.h
parentf038cc1379c0ff462d83895cae8beb75a0f6bf02 (diff)
downloadlinux-6d5e9d63683042a8d344cd5d6f9cf23613864a29.tar.xz
pid: Split out pid_types.h
Trimming down sched.h dependencies: we dont't want to include more than the base types. Cc: Kees Cook <keescook@chromium.org> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Will Drewry <wad@chromium.org> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'include/linux/pid_types.h')
-rw-r--r--include/linux/pid_types.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/pid_types.h b/include/linux/pid_types.h
new file mode 100644
index 000000000000..c2aee1d91dcf
--- /dev/null
+++ b/include/linux/pid_types.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _LINUX_PID_TYPES_H
+#define _LINUX_PID_TYPES_H
+
+enum pid_type {
+ PIDTYPE_PID,
+ PIDTYPE_TGID,
+ PIDTYPE_PGID,
+ PIDTYPE_SID,
+ PIDTYPE_MAX,
+};
+
+struct pid_namespace;
+extern struct pid_namespace init_pid_ns;
+
+#endif /* _LINUX_PID_TYPES_H */