Re: unveil(2): new corner case: failure on using a directory if not already exists

2019-06-11 Thread Theo de Raadt
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

Re: unveil(2): new corner case: failure on using a directory if not already exists

2019-06-08 Thread Bob Beck
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

Re: unveil(2): new corner case: failure on using a directory if not already exists

2019-06-08 Thread Theo de Raadt
> 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

unveil(2): new corner case: failure on using a directory if not already exists

2019-06-07 Thread Sebastien Marie
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