diff options
author | 2023-12-11 13:03:22 -0500 | |
---|---|---|
committer | 2023-12-20 19:26:31 -0500 | |
commit | 6d5e9d63683042a8d344cd5d6f9cf23613864a29 (patch) | |
tree | a0afec6744c6d7429fe3eebeeef20c4554b20209 /include/linux/pid_types.h | |
parent | locking/seqlock: Split out seqlock_types.h (diff) | |
download | wireguard-linux-6d5e9d63683042a8d344cd5d6f9cf23613864a29.tar.xz wireguard-linux-6d5e9d63683042a8d344cd5d6f9cf23613864a29.zip |
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.h | 16 |
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 */ |