1

I've been reading about the definition of the sandbox pattern and reading one answer given here. In the idea of a real world sandbox, it wasn't made only to prevent the children from leaving it, but also to prevent unwanted visitors from entering it.

What is the name of the pattern for this second situation? Where the software runs in a controlled space to prevent outsiders from interfering.

srgblnch
  • 190
  • 4
  • I'm not sure what you are referring too. Are you talking about the chroot or sandboxing programming languages? – BigBob1000 Aug 19 '14 at 10:31
  • @BigBob1000, the OP is talking about the concept of sandboxing. He's asking the name of a security pattern, namely, _"Where the software runs in a controlled space to prevent outsiders from interfering."_ – Chris Murray Aug 19 '14 at 10:35

2 Answers2

1

This "preventing outsiders from interfering" is achieved by sandboxing the outsiders, too. When everyone can't leave their sandbox, no one can enter their neighbour's sandbox. Ideally, the code that maintains the sandboxes is as lean as possible, to reduce the number of "outsiders that can interfere" as much as possible.

user10008
  • 4,355
  • 21
  • 33
0

"Filtering" is a generic term for controlling what inputs that reach a piece of code.

A "firewall" is a membrane around a resource that filters inputs.

If you surround your sandbox with metal detectors to allow guests without metal weapons from entering the sandbox, and also erect a firewall so that the only way anyone can enter the sandbox is via the metal detectors, then you've filtered out metal weapons from the set of objects that can reach the sandbox.

Mike Samuel
  • 3,873
  • 18
  • 25