OpenBSD top(1) adds flag to show chroot, pledge and unveil status

25 points by mairo 21 hours ago on lobsters | 1 comment

[OP] mairo | 20 hours ago

I used this to find a bug in one of my tools, where the initial pledge wasn't reduced on a certain code path.

Then I did some basic checking in C, Go, and Rust, and all three functioned as expected. With sleep() between pledge reductions, top showed the pledge updates as they happened. Awesome, thanks, OpenBSD devs!