Re:OpenBSD's Pledge and Unveil from Python
by trasz on Wednesday September 15, 2021 @08:40AM
(#28538323)
It is pretty simple - implementing that for irssi(1) took a dozen or two lines of C, IIRC. Sure, it could be simpler, and hopefully libcasper(3) will make it happen, but it's not much of a difference.
Capsicum is simply not flexible in this way. Maybe if there was a way to open a new socket with a capability you setup earlier, that would be flexible enough.