OpenBSD – unveil(2) usage in base
marc.info
marc.info
"The first call to unveil removes visibility of the entire filesystem from all other filesystem-related system calls (such as open(2), chmod(2) and rename(2)), except for the specified path. Subsequent calls to unveil expose additional views of the filesystem... Attempts to access paths not allowed by unveil will result in an error of EACCES when the flags argument does not match the attempted operation. ENOENT is returned for paths for which no unveil flags are present."
I asssume this means the e.g., open("fully veiled path") will result in -ENOENT before the traditional UNIX file and directory permission bits are even considered.