summaryrefslogtreecommitdiff
path: root/sys/dev/mii/qsphy.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-04-18 11:51:18 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-04-18 11:51:18 +0000
commit0a8d233b5a2f60bcd449b707cc466d17560dec34 (patch)
tree2e60f99714a1681f8961c7ac537c7791334ec02e /sys/dev/mii/qsphy.c
parentc69678059df7cbd9d0d400a81c0b2430847a6436 (diff)
Have each thread keeps its own (counted!) reference to the process's ucreds
to avoid possible use-after-free references when swapping ids in threaded processes. "Do I have the right creds?" checks are always made with the threads creds. Inspired by FreeBSD and NetBSD "right time" deraadt@
Diffstat (limited to 'sys/dev/mii/qsphy.c')
0 files changed, 0 insertions, 0 deletions