| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SYSCALL_SETS_H_ | 5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SYSCALL_SETS_H_ |
| 6 #define SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SYSCALL_SETS_H_ | 6 #define SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SYSCALL_SETS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "sandbox/sandbox_export.h" | 10 #include "sandbox/sandbox_export.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 static bool IsSocketCall(int sysno); | 47 static bool IsSocketCall(int sysno); |
| 48 #endif | 48 #endif |
| 49 | 49 |
| 50 #if defined(__x86_64__) || defined(__arm__) || defined(__mips__) | 50 #if defined(__x86_64__) || defined(__arm__) || defined(__mips__) |
| 51 static bool IsNetworkSocketInformation(int sysno); | 51 static bool IsNetworkSocketInformation(int sysno); |
| 52 #endif | 52 #endif |
| 53 | 53 |
| 54 static bool IsAllowedAddressSpaceAccess(int sysno); | 54 static bool IsAllowedAddressSpaceAccess(int sysno); |
| 55 static bool IsAllowedGeneralIo(int sysno); | 55 static bool IsAllowedGeneralIo(int sysno); |
| 56 static bool IsPrctl(int sysno); | 56 static bool IsPrctl(int sysno); |
| 57 static bool IsSeccomp(int sysno); |
| 57 static bool IsAllowedBasicScheduler(int sysno); | 58 static bool IsAllowedBasicScheduler(int sysno); |
| 58 static bool IsAdminOperation(int sysno); | 59 static bool IsAdminOperation(int sysno); |
| 59 static bool IsKernelModule(int sysno); | 60 static bool IsKernelModule(int sysno); |
| 60 static bool IsGlobalFSViewChange(int sysno); | 61 static bool IsGlobalFSViewChange(int sysno); |
| 61 static bool IsFsControl(int sysno); | 62 static bool IsFsControl(int sysno); |
| 62 static bool IsNuma(int sysno); | 63 static bool IsNuma(int sysno); |
| 63 static bool IsMessageQueue(int sysno); | 64 static bool IsMessageQueue(int sysno); |
| 64 static bool IsGlobalProcessEnvironment(int sysno); | 65 static bool IsGlobalProcessEnvironment(int sysno); |
| 65 static bool IsDebug(int sysno); | 66 static bool IsDebug(int sysno); |
| 66 static bool IsGlobalSystemStatus(int sysno); | 67 static bool IsGlobalSystemStatus(int sysno); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 static bool IsMipsPrivate(int sysno); | 102 static bool IsMipsPrivate(int sysno); |
| 102 static bool IsMipsMisc(int sysno); | 103 static bool IsMipsMisc(int sysno); |
| 103 #endif // defined(__mips__) | 104 #endif // defined(__mips__) |
| 104 private: | 105 private: |
| 105 DISALLOW_IMPLICIT_CONSTRUCTORS(SyscallSets); | 106 DISALLOW_IMPLICIT_CONSTRUCTORS(SyscallSets); |
| 106 }; | 107 }; |
| 107 | 108 |
| 108 } // namespace sandbox. | 109 } // namespace sandbox. |
| 109 | 110 |
| 110 #endif // SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SYSCALL_SETS_H_ | 111 #endif // SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SYSCALL_SETS_H_ |
| OLD | NEW |