git: kernel - Improve uidinfo
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Nov 1 17:50:10 PDT 2017
commit b3c6f0e59d1bfeab398d54dba4b85d576523ce8d
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Wed Nov 1 17:47:48 2017 -0700
kernel - Improve uidinfo
* Improve uifind() to check td_cred for likely uid's, avoiding all
locking on hits.
* Create proc0 cred's cr_uidinfo and cr_ruidinfo using uicreate().
All creds should now never have a NULL cr_uidinfo or cr_ruidinfo,
so also remove conditionals that test for NULL.
Suggested-by: __mjg
Summary of changes:
sys/kern/init_main.c | 7 +++++--
sys/kern/kern_lock.c | 2 +-
sys/kern/kern_prot.c | 18 ++++++------------
sys/kern/kern_resource.c | 20 ++++++++++++++++++--
sys/sys/resourcevar.h | 1 +
5 files changed, 31 insertions(+), 17 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b3c6f0e59d1bfeab398d54dba4b85d576523ce8d
--
DragonFly BSD source repository
More information about the Commits
mailing list