News for hackers. Stuff that matters.
Re:Rust – How do I create a global, mutable singleton? (2015) by kstrauser on Wednesday July 22, 2020 @01:20PM (#23919312)
I really like the OpenBSD "pledge" API (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.

There are no comments on this comment yet.