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

Side by Side Diff: sandbox/linux/seccomp/madvise.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/ipc.cc ('k') | sandbox/linux/seccomp/mprotect.cc » ('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 "debug.h" 5 #include "debug.h"
2 #include "sandbox_impl.h" 6 #include "sandbox_impl.h"
3 7
4 namespace playground { 8 namespace playground {
5 9
6 int Sandbox::sandbox_madvise(void* start, size_t length, int advice) { 10 int Sandbox::sandbox_madvise(void* start, size_t length, int advice) {
7 Debug::syscall(__NR_madvise, "Executing handler"); 11 Debug::syscall(__NR_madvise, "Executing handler");
8 struct { 12 struct {
9 int sysnum; 13 int sysnum;
10 long long cookie; 14 long long cookie;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 } 70 }
67 } 71 }
68 72
69 // Changing attributes on memory regions that were newly mapped inside of 73 // Changing attributes on memory regions that were newly mapped inside of
70 // the sandbox is OK. 74 // the sandbox is OK.
71 goto ok; 75 goto ok;
72 } 76 }
73 } 77 }
74 78
75 } // namespace 79 } // namespace
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp/ipc.cc ('k') | sandbox/linux/seccomp/mprotect.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698