4 ms·
Can anyone explain pledge?
by chris_wot 11y ago
Can anyone explain pledge?
- cypher543 11y agoIt tells the kernel which system calls and file paths your process intends to use. If it uses any others, because of malicious code injection or whatever, your process is killed immediately. http://man.openbsd.org/OpenBSD-current/man2/pledge.2 http://man.openbsd.org/OpenBSD-current/man2/pledge.2
- protomyth 11y agoTheo de Raadt explains it well in this video https://www.youtube.com/watch?v=F_7S1eqKsFk https://www.youtube.com/watch?v=F_7S1eqKsFk
- bodyfour 11y agoThe work originally started as tame(), here are some of the earlier HN discussions on that: * https://news.ycombinator.com/item?id=9928221 https://news.ycombinator.com/item?id=9928221 * https://news.ycombinator.com/item?id=10135901 https://news.ycombinator.com/item?id=10135901 During its development, the API was made more flexible and eventually got renamed pledge()