2 ms·
I really like the OpenBSD "pledge" API (https://man.openbsd.org/pledge.2 https://man.openbsd.org/pledge.2). At any point, a program can promise that it will onl
by kstrauser 6y ago
I really like the OpenBSD "pledge" API (https://man.openbsd.org/pledge.2 https://man.openbsd.org/pledge.2). At any point, a program can promise that it will only make specific syscalls from then on, and subsequent pledges can only further restrict that list of syscalls.
Once a process has given up rights to open a local file, for instance, it can't get it back. I think that's beautiful.