Update the constraint-checking code to use a much more sanitized
dictionary as the eval environment for checking constraints.
Specifically:
  * uses a copy of the keyval dict, to prevent the mutation of
    the keyval dictionary by the eval()
  * sets __builtins__ to None, to prevent the grabbing of the
    entire global environment into the eval()

Risk: Medium
Visibility: May break any constraints that were abusing the fact that
the global environment was leaking into the constraint eval().

Signed-off-by: John Admanski <jadmanski@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@3807 592f7852-d20e-0410-864c-8624ca9c26a4
1 file changed