On 9/16/23 11:01, Zack Newman wrote:

Looking at sys_unveil in /sys/kern/vfs_syscalls.c, i suspect that
errno actually comes from a lower layer, likely namei(9), rather than
from unveil(2) itself.

That is also true for EFAULT which is described. I also noticed that
EACCESS is returned on line 698, but it too is missing in the list of
errors.

I apologize as above is misleading. I was looking at
sys/kern/kern_unveil.c, and ENOTDIR and EFAULT are not found in that
file unlike the other errnos. I haven't looked at
sys/kern/vfs_syscall.c. Line 698 was also referencing kern_unveil.c.

Reply via email to