Serialize access to UID data with a rwlock.
authormpi <mpi@openbsd.org>
Mon, 26 Feb 2018 13:43:51 +0000 (13:43 +0000)
committermpi <mpi@openbsd.org>
Mon, 26 Feb 2018 13:43:51 +0000 (13:43 +0000)
commitb054dc0d0c531404d2b3d13398246bf2368951ae
tree2582a78e696e448113c180260bb4e5b2af374b2f
parent879edb36e9a953e453e7b19ac6c72ad3ba21655e
Serialize access to UID data with a rwlock.

Caller must call uid_release() after making whatever change they needed
on the result of uid_find().

Adapted from guenther@'s proctree diff, ok dlg@, visa@
sys/kern/kern_proc.c
sys/kern/vfs_lockf.c
sys/sys/proc.h