1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-28 16:16:48 +00:00
Files
src/sys/kern
deraadt ee1bf64f5b In the namei callback for __pledge_open() invert the logic of checking
pledge/namei modes and then checking for the path.  Now, first
identify the path with array bsearch then check the pledge/namei modes.
Since this is __pledge_open(), if the path is not known, terminate with
an EACCES abort.  If the path is known but the pledge/namei modes don't
suggest an unveil bypass, allow the code to fallthrough to the rpath/wpath
checks, and then back into namei for unveil validation.
ok dgl
2026-03-25 05:14:10 +00:00
..