blob: 4cabff067fa74297a0c9579ef89e5bfee5e5a400 [file] [log] [blame]
drewry@google.combd940e92009-12-07 19:13:27 +00001// Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4// Some portions Copyright (c) 2009 The Chromium Authors.
5//
6// Default Interface implementation
7
8#include "minijail/env.h"
9#include "minijail/options.h"
10#include "minijail/interface.h"
11
12namespace chromeos {
13namespace minijail {
14
15bool Interface::Run() const {
16 LOG_IF(FATAL, !options()->executable_path()) << "No executable path given.";
17 return options()->env()->Run(options()->executable_path(),
18 options()->arguments(),
19 options()->environment());
20}
21
22} // namespace minijail
23} // namespace chromeos