> which started with specifically the question of OpenBSD applying the protection in question to its own base system.
Agreed, my answers did quickly go beyond the original point being claimed.
> I think that pledge and unveil are a type of sandboxing, certainly.
I think they are limitations and that's about it. They don't fit the metaphor of a sandbox IMO.
> but that strikes me as a slight variation rather than a fundamental difference in what is or isn't a "sandbox" per se.
Fundamentally I see a sandbox as something that is hard for the sandboxed application to escape, or even communicate out from except via limited well defined channels.
I don't think limiting syscalls alone satisfies that.
As a test, I think a robust sandbox should be able to apply to any program, no matter what it is doing.
Do you think pledge satisfies that? What about a complex piece of software that needs to use a number of syscalls that could be leveraged for an attack frequently, and so can't be meaningfully limited with pledge.
If that software has a vulnerability, the attacker now has access to the host system at least to the extent of the user the program was running under. That attacker certainly isn't sandboxed, they don't even have to escape a sandbox because there wasn't really one there, just 'concepts of a sandbox'.
Appreciating this discussion by the way!