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

Side by Side Diff: sandbox/linux/seccomp/trusted_process.cc

Issue 672011: Added missing copyright header. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sandbox/linux/seccomp/tls.h ('k') | sandbox/linux/seccomp/x86_decode.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium 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
1 #include <dirent.h> 5 #include <dirent.h>
2 #include <map> 6 #include <map>
3 7
4 #include "debug.h" 8 #include "debug.h"
5 #include "sandbox_impl.h" 9 #include "sandbox_impl.h"
6 #include "syscall_table.h" 10 #include "syscall_table.h"
7 11
8 namespace playground { 12 namespace playground {
9 13
10 struct Thread { 14 struct Thread {
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 246
243 // We are still in the untrusted code. Deny access to restricted resources. 247 // We are still in the untrusted code. Deny access to restricted resources.
244 mprotect(secureArena, 8192*kMaxThreads, PROT_NONE); 248 mprotect(secureArena, 8192*kMaxThreads, PROT_NONE);
245 mprotect(&syscall_mutex_, 4096, PROT_NONE); 249 mprotect(&syscall_mutex_, 4096, PROT_NONE);
246 close(sandboxFd); 250 close(sandboxFd);
247 251
248 return secureArena; 252 return secureArena;
249 } 253 }
250 254
251 } // namespace 255 } // namespace
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp/tls.h ('k') | sandbox/linux/seccomp/x86_decode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698