Re:Pledge and Unveil in OpenBSD [pdf]
by gpvos on Sunday June 10, 2018 @04:07PM
(#17279916)
Yes, but the weird thing is that before you call unveil, everything is already unveiled, which is not in sync with the dictionary definition of unveiling. I hope a better name is found.
[ Parent
| on HN ]
Re:Pledge and Unveil in OpenBSD [pdf]
by notaplumber on Sunday June 10, 2018 @07:01PM
(#17280631)
It's unveiling in the context of pledge, as you explicitly declare the things to be unveiled.
Your comment made me try to look up the exact semantics of unveil(2). It was a bit hard to find (I could only find something on its predecessor pledgepath), but apparently, unveil doesn't take effect immediately, but only at an invocation of pledge(2) (which usually follows immediately after it). That was not at all clear from TFA.