Index: src/platform/minijail/interface.cc |
diff --git a/src/platform/minijail/interface.cc b/src/platform/minijail/interface.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4cabff067fa74297a0c9579ef89e5bfee5e5a400 |
--- /dev/null |
+++ b/src/platform/minijail/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 |