Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> unveil can be locked, preventing further filesytem exposure by calling unveil with two NULL arguments.

This is nice and I bet it will be preferable to blocking further unveil calls via pledge. Doing it with pledge would depend on the code path. Just as an example, are you connecting to an IP address or a hostname (requiring a "dns" pledge)? Are you reading from stdin or opening a file directly (requiring an "rpath" pledge)? The current pledge state wouldn't matter when removing unveil access via unveil itself, much simpler.

Pledge is already outstanding but combined with unveil I feel like a kid in a candy store.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: