Baseline minijail with a commandline switch driven main.

Review URL: http://codereview.chromium.org/466049

git-svn-id: svn://chrome-svn/chromeos/trunk@342 06c00378-0e64-4dae-be16-12b19f9950a1
diff --git a/interface.cc b/interface.cc
new file mode 100644
index 0000000..4cabff0
--- /dev/null
+++ b/interface.cc
@@ -0,0 +1,23 @@
+// Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+// Some portions Copyright (c) 2009 The Chromium Authors.
+//
+// Default Interface implementation
+
+#include "minijail/env.h"
+#include "minijail/options.h"
+#include "minijail/interface.h"
+
+namespace chromeos {
+namespace minijail {
+
+bool Interface::Run() const {
+  LOG_IF(FATAL, !options()->executable_path()) << "No executable path given.";
+  return options()->env()->Run(options()->executable_path(),
+                               options()->arguments(),
+                               options()->environment());
+}
+
+}  // namespace minijail
+}  // namespace chromeos