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

Unified Diff: sandbox/linux/services/namespace_utils.h

Issue 881733002: Add namespace sandbox class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nested namespace sandboxes aren't supported. Created 5 years, 11 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
Index: sandbox/linux/services/namespace_utils.h
diff --git a/sandbox/linux/services/namespace_utils.h b/sandbox/linux/services/namespace_utils.h
index d248d9502f358992dab1a2a455dc89897311294e..cf58ee8f6fde7fdec3bcdb774368e06d01d417e9 100644
--- a/sandbox/linux/services/namespace_utils.h
+++ b/sandbox/linux/services/namespace_utils.h
@@ -7,6 +7,7 @@
#include <sys/types.h>
+#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/template_util.h"
#include "sandbox/sandbox_export.h"
@@ -21,7 +22,8 @@ class SANDBOX_EXPORT NamespaceUtils {
typedef uid_t generic_id_t;
// Write a uid or gid mapping from |id| to |id| in |map_file|.
- static bool WriteToIdMapFile(const char* map_file, generic_id_t id);
+ static bool WriteToIdMapFile(const char* map_file,
+ generic_id_t id) WARN_UNUSED_RESULT;
// Returns true if unprivileged namespaces of type |type| is supported
// (meaning that both CLONE_NEWUSER and type are are supported). |type| must

Powered by Google App Engine
This is Rietveld 408576698