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

The threat vector is not that you don't trust the program, pledge/unveil is completely unsuitable for that. but that you worry the program will be compromised while it is running.

so the observation is that programs tend to have a startup state where they need access to files and a run state where they don't. so pledge/unveil is a mechanism for a program to inform the os that it no longer needs access to files/syscalls and any future access should be considered a hostile takeover. please kill me.



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

Search: