revoke(2): Use unix socket externalize code to handle revoke.
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 24 Sep 2015 13:50:45 +0000 (21:50 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 26 Sep 2015 02:15:05 +0000 (10:15 +0800)
commitf635d1746140d0f4915af3adb8314f4759377d3b
tree0a8fd6827ba3529292753330b91bf1b90e0726c6
parentd0505a2a9878750f03aa91af3f422e09b685d5e9
revoke(2): Use unix socket externalize code to handle revoke.

Use revoke token in shared mode in unix socket code and in exclusive
mode in fdrevoke(); mainly to make sure that all fps externalized and
marked FREVOKED will be picked up by later allproc_scan() called by
fdrevoke().

This one greatly simplies the code on unix socket side.  The original
unix socket revoke handling was also kinda broken: it tried to hold
socket reception buffer token w/ all filedesc spin lock being held.

Go-Ahead-by: dillon@
sys/kern/kern_descrip.c
sys/kern/uipc_usrreq.c
sys/sys/thread.h
sys/sys/un.h