Refactor how unveil generates EACCES errors. Instead of tracking the
authorclaudio <claudio@openbsd.org>
Thu, 2 Sep 2021 12:35:23 +0000 (12:35 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 2 Sep 2021 12:35:23 +0000 (12:35 +0000)
commitdbaaa4558bebea51f1a8f60cfe3e2eaf072a60b3
treeabfa8a32f7706409a2f9d6fbe7b3610b7b1a9ffa
parentac61a276f99631cc259fbe7a97bdd0173e34c73f
Refactor how unveil generates EACCES errors. Instead of tracking the
possible violation during the traversal of the path do the check at the
end. Make the code a bit easier to grok.
OK beck@ semarie@
sys/kern/kern_unveil.c
sys/sys/namei.h