OpenBSD cvs log

created 2021-07-05T14:08:49Z
begin 2021-06-29T01:46:35Z
end 2021-06-29T07:55:29Z
path src/sys
commits 1

date 2021-06-29T07:55:29Z
author claudio
files src/sys/kern/kern_unveil.c log diff annotate
message Adjust unveil_find_cover() to return -1 if the root vnode is passed in.
This helps unveil_add_vnode() to properly re-evaluate unveils when
"/" is added to the list.

Because of this adjust unveil_covered() to check for the root as well
so that in that case the unveil uv is returned instead of NULL. Traversing
up from the root returns the root. This check is not really needed since
namei has its own root check and shortcuts for root vnodes.

OK semarie@