diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-07-22 17:05:04 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-07-22 17:05:04 +0000 |
commit | d37648bc1fa202ca6ba0cfb549bdd91c0e4d916c (patch) | |
tree | 3146046dd3d76d114a26fe68bd3f5d2b11ed01c7 /sys/kern/sys_socket.c | |
parent | 01be595ab33612b855914baf3ef7b67166cbe2ed (diff) | |
download | FreeBSD-src-d37648bc1fa202ca6ba0cfb549bdd91c0e4d916c.zip FreeBSD-src-d37648bc1fa202ca6ba0cfb549bdd91c0e4d916c.tar.gz |
suser() accepts a thread argument; as suser() dereferences td_ucred, a
thread-local pointer, in practice that thread needs to be curthread. If
we're running with INVARIANTS, generate a warning if not. If we have
KDB compiled in, generate a stack trace. This doesn't fire at all in my
local test environment, but could be irritating if it fires frequently
for someone, so there will be motivation to fix things quickly when it
does.
Diffstat (limited to 'sys/kern/sys_socket.c')
0 files changed, 0 insertions, 0 deletions