Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: src/platform/minijail/options.cc

Issue 466049: Baseline minijail with a commandline switch driven main. (Closed)
Patch Set: fix overly long lines Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/platform/minijail/options.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // 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 implementation of the Options interface.
7
8 #include "minijail/options.h"
9
10 #include <base/basictypes.h>
11 #include <base/logging.h>
12 #include <base/scoped_ptr.h>
13
14 namespace chromeos {
15
16 namespace minijail {
17
18 bool Options::FixUpDependencies() {
19 if (add_readonly_mounts() && !namespace_vfs()) {
20 DLOG(INFO) << "add_readonly_mounts(true) implies "
21 << "namespace_vfs(true): correcting.";
22 set_namespace_vfs(true);
23 }
24 if (enforce_syscalls_benchmark() && enforce_syscalls_by_source()) {
25 LOG(ERROR) << "enforce_syscalls_benchmark(true) and "
26 << "enforce_syscalls_by_source(true) cannot both be set.";
27 return false;
28 }
29 return true;
30 }
31
32 } // namespace minijail
33 } // namespace chromeos
OLDNEW
« no previous file with comments | « src/platform/minijail/options.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698