That being said, for example, let’s say pledge or unveil have one line of code that is fd.
You can’t put all your eggs in a basket given the probability that something is fd.
Downvoting my statement is fine as long as it’s noobs learning from this script and not someone who is running critical infrastructure. :)
But you'd be doing that no matter what unless you're running each daemon on a different physical machine. That basket's just called "Xen" now instead of "OpenBSD". Worse, if the hypervisor has a bug that can be triggered from unprivileged guest code (i.e. as a non-root user in the guest OS), then any layers added in the guest are moot.
For example, driving is convenient. That doesn’t mean someone who has never driven before should just drive. It’s definitely better for them to taxi.
It’s a hard problem - we have to make things easier for people.
When King Sejong saw that people were illiterate, he didn’t try to force everyone to suddenly learn a difficult language - he just made an easier one.
Now korea is 99.9% literate.
Edit: To clarify - if one line of code is fd in any of the daemons you’re running you’ll lose everything.
Practice defense in depth.
Minimize the damage possible.