3 ms·
A little more info for those not familiar with these terms (I was not): 1. pledge is a system call that a process can make that limits what subsequent system c
by hn_throwaway_99 3y ago
A little more info for those not familiar with these terms (I was not):
1. pledge is a system call that a process can make that limits what subsequent system calls that process can execute, e.g. "I pledge to only call X, Y, Z": https://unix.stackexchange.com/questions/410056/what-is-openbsds-pledge-in-short https://unix.stackexchange.com/questions/410056/what-is-open...
2. unveil is the analogous call to restrict filesystem paths: it limits which paths open is allowed to access: https://why-openbsd.rocks/fact/unveil/ https://why-openbsd.rocks/fact/unveil/
- paulclinger 3y ago@jart also made a writeup on porting pledge to Linux specifically in the cosmopolitan context: https://justine.lol/pledge/ https://justine.lol/pledge/.