diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2015-06-10 10:43:59 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2015-06-10 10:43:59 +0000 |
commit | 4ea6a9a28fd7ae3cc6e8697bc93f9ce5ea6b6262 (patch) | |
tree | 4be753ea914cbf9f2ee65a2a1cc53e6989224d5d /sys/kern/kern_syscalls.c | |
parent | 8bd0e175953787f1209a257c622415b6e93cf29c (diff) | |
download | src-4ea6a9a28fd7ae3cc6e8697bc93f9ce5ea6b6262.tar.gz src-4ea6a9a28fd7ae3cc6e8697bc93f9ce5ea6b6262.zip |
Generalised support for copy-on-write structures shared by threads.
Thread credentials are maintained as follows: each thread has a pointer to
creds and a reference on them. The pointer is compared with proc's creds on
userspace<->kernel boundary and updated if needed.
This patch introduces a counter which can be compared instead, so that more
structures can use this scheme without adding more comparisons on the boundary.
Notes
Notes:
svn path=/head/; revision=284214
Diffstat (limited to 'sys/kern/kern_syscalls.c')
-rw-r--r-- | sys/kern/kern_syscalls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_syscalls.c b/sys/kern/kern_syscalls.c index dada746df2da..3d3df0169d87 100644 --- a/sys/kern/kern_syscalls.c +++ b/sys/kern/kern_syscalls.c @@ -31,6 +31,8 @@ __FBSDID("$FreeBSD$"); #include <sys/kernel.h> #include <sys/lock.h> #include <sys/module.h> +#include <sys/mutex.h> +#include <sys/proc.h> #include <sys/sx.h> #include <sys/syscall.h> #include <sys/sysent.h> |