Remove the uvshrink logic and keep the unveil list in the order of insertion.
authorclaudio <claudio@openbsd.org>
Tue, 15 Jun 2021 18:42:23 +0000 (18:42 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 15 Jun 2021 18:42:23 +0000 (18:42 +0000)
commitf5e54ad95ac2c2538aadd40c6967fecbfabb4fc9
tree6b4fdf00fa099cacab5b06d1667f4256cf397fce
parent57296fa77041f09abfb1381e97904e41720fbd00
Remove the uvshrink logic and keep the unveil list in the order of insertion.
unveil_lookup() is now doing a dumb linear search. The problem with the
uvshrink logic was that ps_uvpcwd was a pointer into this array and after
compation it pointed to the wrong element. Also future unveil caches would
suffer from the same issue.
OK semarie@
sys/kern/kern_unveil.c
sys/sys/proc.h