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

Unified Diff: sandbox/linux/suid/sandbox.c

Issue 3146044: Remove NEWNS from the setuid sandbox.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/suid/sandbox.c
===================================================================
--- sandbox/linux/suid/sandbox.c (revision 57321)
+++ sandbox/linux/suid/sandbox.c (working copy)
@@ -36,9 +36,6 @@
#if !defined(CLONE_NEWNET)
#define CLONE_NEWNET 0x40000000
#endif
-#if !defined(CLONE_NEWNS)
-#define CLONE_NEWNS 0x00020000
-#endif
#if !defined(BTRFS_SUPER_MAGIC)
#define BTRFS_SUPER_MAGIC 0x9123683E
@@ -269,7 +266,6 @@
static bool MoveToNewNamespaces() {
// These are the sets of flags which we'll try, in order.
const int kCloneExtraFlags[] = {
- CLONE_NEWPID | CLONE_NEWNET | CLONE_NEWNS,
CLONE_NEWPID | CLONE_NEWNET,
CLONE_NEWPID,
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698