The man page says:
Non-directory paths are remembered by name within their containing
directory, and so may be created, removed, or re-created after a call to
unveil() and still appear to exist.
This piece of documentation covers a number of cases, including this one.
It says that
We should clarify the man page. trying to think about wording.
On Sat, Jun 8, 2019 at 01:10 Theo de Raadt wrote:
> > solene@ reported on ports an error with unveil(2) on creating
> > subdirectories on previously not existent directory, for a port she
> > tried to unveiled.
>
> Step back for a
> solene@ reported on ports an error with unveil(2) on creating
> subdirectories on previously not existent directory, for a port she
> tried to unveiled.
Step back for a moment.
Let's say you are allowed to create such directories.
Is that a safe thing to provide?
Non-existant was only
Hi,
solene@ reported on ports an error with unveil(2) on creating
subdirectories on previously not existent directory, for a port she
tried to unveiled.
https://marc.info/?l=openbsd-ports=155992715132013=2
so I tried to reproduced it with simple C program.
$ cat test.c