aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/proc.h
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2020-11-17 21:14:13 +0000
committerConrad Meyer <cem@FreeBSD.org>2020-11-17 21:14:13 +0000
commit85078b8573332c2c83a79adea8a61b519fb3b6af (patch)
treea721f4ce38f990646f8bcd322c64c082ddb2353a /sys/sys/proc.h
parentede4af47ae6e3b6f961462f687d28ba3623882a5 (diff)
downloadsrc-85078b8573332c2c83a79adea8a61b519fb3b6af.tar.gz
src-85078b8573332c2c83a79adea8a61b519fb3b6af.zip
Split out cwd/root/jail, cmask state from filedesc table
No functional change intended. Tracking these structures separately for each proc enables future work to correctly emulate clone(2) in linux(4). __FreeBSD_version is bumped (to 1300130) for consumption by, e.g., lsof. Reviewed by: kib Discussed with: markj, mjg Differential Revision: https://reviews.freebsd.org/D27037
Notes
Notes: svn path=/head/; revision=367777
Diffstat (limited to 'sys/sys/proc.h')
-rw-r--r--sys/sys/proc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 45118db34dde..0b41b84c08ab 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -597,6 +597,7 @@ struct proc {
struct ucred *p_ucred; /* (c) Process owner's identity. */
struct filedesc *p_fd; /* (b) Open files. */
struct filedesc_to_leader *p_fdtol; /* (b) Tracking node */
+ struct pwddesc *p_pd; /* (b) Cwd, chroot, jail, umask */
struct pstats *p_stats; /* (b) Accounting/statistics (CPU). */
struct plimit *p_limit; /* (c) Resource limits. */
struct callout p_limco; /* (c) Limit callout handle */