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

Side by Side Diff: content/common/sandbox_init_linux.cc

Issue 10795004: Add mknod* to the list of syscalls which use filesystem paths. mknod() has (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | « no previous file | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/common/sandbox_init.h" 5 #include "content/public/common/sandbox_init.h"
6 6
7 #if defined(__i386__) || defined(__x86_64__) 7 #if defined(__i386__) || defined(__x86_64__)
8 8
9 // This is an assert for GYP 9 // This is an assert for GYP
10 #if !defined(OS_LINUX) 10 #if !defined(OS_LINUX)
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 case __NR_openat: 130 case __NR_openat:
131 case __NR_execve: 131 case __NR_execve:
132 case __NR_access: 132 case __NR_access:
133 case __NR_mkdir: 133 case __NR_mkdir:
134 case __NR_mkdirat: 134 case __NR_mkdirat:
135 case __NR_readlink: 135 case __NR_readlink:
136 case __NR_readlinkat: 136 case __NR_readlinkat:
137 case __NR_stat: 137 case __NR_stat:
138 case __NR_lstat: 138 case __NR_lstat:
139 case __NR_chdir: 139 case __NR_chdir:
140 case __NR_mknod:
141 case __NR_mknodat:
140 return true; 142 return true;
141 default: 143 default:
142 return false; 144 return false;
143 } 145 }
144 } 146 }
145 147
146 #if defined(__x86_64__) 148 #if defined(__x86_64__)
147 // x86_64 only because it references system calls that are multiplexed on IA32. 149 // x86_64 only because it references system calls that are multiplexed on IA32.
148 playground2::Sandbox::ErrorCode GpuProcessPolicy_x86_64(int sysno) { 150 playground2::Sandbox::ErrorCode GpuProcessPolicy_x86_64(int sysno) {
149 switch(sysno) { 151 switch(sysno) {
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 453
452 namespace content { 454 namespace content {
453 455
454 void InitializeSandbox() { 456 void InitializeSandbox() {
455 #if defined(__i386__) || defined(__x86_64__) 457 #if defined(__i386__) || defined(__x86_64__)
456 InitializeSandbox_x86(); 458 InitializeSandbox_x86();
457 #endif 459 #endif
458 } 460 }
459 461
460 } // namespace content 462 } // namespace content
OLDNEW
« 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