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

Unified Diff: minijail.cc

Issue 6881066: [minijail] Add the ability to set capabilities from the command line (Closed) Base URL: http://git.chromium.org/git/minijail.git@master
Patch Set: Created 9 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | minijail_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: minijail.cc
diff --git a/minijail.cc b/minijail.cc
index d7011d28259d40b281936798cb5daa954e5eb403..969cdd8f89b4c088ea2c0c35d1ec028930581b2e 100644
--- a/minijail.cc
+++ b/minijail.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -79,11 +79,10 @@ bool MiniJail::Jail() const {
}
if (opts->use_capabilities()) {
- // TODO(wad) use helpers to read caps from flags
- if (!env->SanitizeCapabilities(0)) {
+ if (!env->SanitizeCapabilities(opts->caps_bitmask())) {
return false;
}
- if (!env->SanitizeBoundingSet(0)) {
+ if (!env->SanitizeBoundingSet(opts->caps_bitmask())) {
return false;
}
}
« no previous file with comments | « no previous file | minijail_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698