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

Side by Side Diff: sandbox/linux/services/arm_linux_syscalls.h

Issue 494743003: sandbox: Add support for the new seccomp() system call in kernel 3.17. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
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 // Generated from the Linux kernel's calls.S. 5 // Generated from the Linux kernel's calls.S.
6 #ifndef SANDBOX_LINUX_SERVICES_ARM_LINUX_SYSCALLS_H_ 6 #ifndef SANDBOX_LINUX_SERVICES_ARM_LINUX_SYSCALLS_H_
7 #define SANDBOX_LINUX_SERVICES_ARM_LINUX_SYSCALLS_H_ 7 #define SANDBOX_LINUX_SERVICES_ARM_LINUX_SYSCALLS_H_
8 8
9 #if !defined(__arm__) || !defined(__ARM_EABI__) 9 #if !defined(__arm__) || !defined(__ARM_EABI__)
10 #error "Including header on wrong architecture" 10 #error "Including header on wrong architecture"
(...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 #define __NR_setns (__NR_SYSCALL_BASE+375) 1339 #define __NR_setns (__NR_SYSCALL_BASE+375)
1340 #endif 1340 #endif
1341 1341
1342 #if !defined(__NR_process_vm_readv) 1342 #if !defined(__NR_process_vm_readv)
1343 #define __NR_process_vm_readv (__NR_SYSCALL_BASE+376) 1343 #define __NR_process_vm_readv (__NR_SYSCALL_BASE+376)
1344 #endif 1344 #endif
1345 1345
1346 #if !defined(__NR_process_vm_writev) 1346 #if !defined(__NR_process_vm_writev)
1347 #define __NR_process_vm_writev (__NR_SYSCALL_BASE+377) 1347 #define __NR_process_vm_writev (__NR_SYSCALL_BASE+377)
1348 #endif 1348 #endif
1349 1349
jln (very slow on Chromium) 2014/08/20 21:34:21 Do you mind adding the other syscalls that we're m
Robert Sesek 2014/08/21 16:50:18 Done.
1350 #if !defined(__NR_seccomp)
1351 #define __NR_seccomp (__NR_SYSCALL_BASE+383)
1352 #endif
1353
1350 // ARM private syscalls. 1354 // ARM private syscalls.
1351 #if !defined(__ARM_NR_breakpoint) 1355 #if !defined(__ARM_NR_breakpoint)
1352 #define __ARM_NR_breakpoint (__ARM_NR_BASE+1) 1356 #define __ARM_NR_breakpoint (__ARM_NR_BASE+1)
1353 #endif 1357 #endif
1354 1358
1355 #if !defined(__ARM_NR_cacheflush) 1359 #if !defined(__ARM_NR_cacheflush)
1356 #define __ARM_NR_cacheflush (__ARM_NR_BASE+2) 1360 #define __ARM_NR_cacheflush (__ARM_NR_BASE+2)
1357 #endif 1361 #endif
1358 1362
1359 #if !defined(__ARM_NR_usr26) 1363 #if !defined(__ARM_NR_usr26)
1360 #define __ARM_NR_usr26 (__ARM_NR_BASE+3) 1364 #define __ARM_NR_usr26 (__ARM_NR_BASE+3)
1361 #endif 1365 #endif
1362 1366
1363 #if !defined(__ARM_NR_usr32) 1367 #if !defined(__ARM_NR_usr32)
1364 #define __ARM_NR_usr32 (__ARM_NR_BASE+4) 1368 #define __ARM_NR_usr32 (__ARM_NR_BASE+4)
1365 #endif 1369 #endif
1366 1370
1367 #if !defined(__ARM_NR_set_tls) 1371 #if !defined(__ARM_NR_set_tls)
1368 #define __ARM_NR_set_tls (__ARM_NR_BASE+5) 1372 #define __ARM_NR_set_tls (__ARM_NR_BASE+5)
1369 #endif 1373 #endif
1370 1374
1371 // ARM kernel private syscall. 1375 // ARM kernel private syscall.
1372 #if !defined(__ARM_NR_cmpxchg) 1376 #if !defined(__ARM_NR_cmpxchg)
1373 #define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0) 1377 #define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0)
1374 #endif 1378 #endif
1375 1379
1376 #endif // SANDBOX_LINUX_SERVICES_ARM_LINUX_SYSCALLS_H_ 1380 #endif // SANDBOX_LINUX_SERVICES_ARM_LINUX_SYSCALLS_H_
1377 1381
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698