/external/libchrome/sandbox/linux/seccomp-bpf-helpers/ |
H A D | syscall_sets.h | 21 static bool IsKill(int sysno); 22 static bool IsAllowedGettime(int sysno); 23 static bool IsCurrentDirectory(int sysno); 24 static bool IsUmask(int sysno); 28 static bool IsFileSystem(int sysno); 29 static bool IsAllowedFileSystemAccessViaFd(int sysno); 30 static bool IsDeniedFileSystemAccessViaFd(int sysno); 31 static bool IsGetSimpleId(int sysno); 32 static bool IsProcessPrivilegeChange(int sysno); 33 static bool IsProcessGroupOrSession(int sysno); [all...] |
H A D | baseline_policy.cc | 41 bool IsBaselinePolicyAllowed(int sysno) { argument 42 return SyscallSets::IsAllowedAddressSpaceAccess(sysno) || 43 SyscallSets::IsAllowedBasicScheduler(sysno) || 44 SyscallSets::IsAllowedEpoll(sysno) || 45 SyscallSets::IsAllowedFileSystemAccessViaFd(sysno) || 46 SyscallSets::IsAllowedFutex(sysno) || 47 SyscallSets::IsAllowedGeneralIo(sysno) || 48 SyscallSets::IsAllowedGetOrModifySocket(sysno) || 49 SyscallSets::IsAllowedGettime(sysno) || 50 SyscallSets::IsAllowedProcessStartOrDeath(sysno) || 64 IsBaselinePolicyWatched(int sysno) argument 102 EvaluateSyscallImpl(int fs_denied_errno, pid_t current_pid, int sysno) argument [all...] |
H A D | syscall_sets.cc | 17 bool SyscallSets::IsKill(int sysno) { argument 18 switch (sysno) { 28 bool SyscallSets::IsAllowedGettime(int sysno) { argument 29 switch (sysno) { 53 bool SyscallSets::IsCurrentDirectory(int sysno) { argument 54 switch (sysno) { 64 bool SyscallSets::IsUmask(int sysno) { argument 65 switch (sysno) { 77 bool SyscallSets::IsFileSystem(int sysno) { argument 78 switch (sysno) { 159 IsAllowedFileSystemAccessViaFd(int sysno) argument 198 IsDeniedFileSystemAccessViaFd(int sysno) argument 223 IsGetSimpleId(int sysno) argument 252 IsProcessPrivilegeChange(int sysno) argument 285 IsProcessGroupOrSession(int sysno) argument 299 IsAllowedSignalHandling(int sysno) argument 334 IsAllowedOperationOnFd(int sysno) argument 356 IsKernelInternalApi(int sysno) argument 369 IsAllowedProcessStartOrDeath(int sysno) argument 401 IsAllowedFutex(int sysno) argument 411 IsAllowedEpoll(int sysno) argument 432 IsAllowedGetOrModifySocket(int sysno) argument 448 IsDeniedGetOrModifySocket(int sysno) argument 467 IsSocketCall(int sysno) argument 478 IsNetworkSocketInformation(int sysno) argument 491 IsAllowedAddressSpaceAccess(int sysno) argument 526 IsAllowedGeneralIo(int sysno) argument 583 IsPrctl(int sysno) argument 595 IsSeccomp(int sysno) argument 604 IsAllowedBasicScheduler(int sysno) argument 622 IsAdminOperation(int sysno) argument 638 IsKernelModule(int sysno) argument 654 IsGlobalFSViewChange(int sysno) argument 665 IsFsControl(int sysno) argument 682 IsNuma(int sysno) argument 699 IsMessageQueue(int sysno) argument 713 IsGlobalProcessEnvironment(int sysno) argument 737 IsDebug(int sysno) argument 749 IsGlobalSystemStatus(int sysno) argument 767 IsEventFd(int sysno) argument 780 IsAsyncIo(int sysno) argument 793 IsKeyManagement(int sysno) argument 805 IsSystemVSemaphores(int sysno) argument 820 IsSystemVSharedMemory(int sysno) argument 834 IsSystemVMessageQueue(int sysno) argument 849 IsSystemVIpc(int sysno) argument 859 IsAnySystemV(int sysno) argument 868 IsAdvancedScheduler(int sysno) argument 889 IsInotify(int sysno) argument 903 IsFaNotify(int sysno) argument 913 IsTimer(int sysno) argument 926 IsAdvancedTimer(int sysno) argument 942 IsExtendedAttributes(int sysno) argument 964 IsMisc(int sysno) argument 1014 IsArmPciConfig(int sysno) argument 1025 IsArmPrivate(int sysno) argument 1040 IsMipsPrivate(int sysno) argument 1050 IsMipsMisc(int sysno) argument [all...] |
H A D | syscall_parameters_restrictions_unittests.cc | 51 ResultExpr EvaluateSyscall(int sysno) const override { 52 switch (sysno) { 116 ResultExpr EvaluateSyscall(int sysno) const override { 117 switch (sysno) { 119 return RestrictSchedTarget(getpid(), sysno); 182 ResultExpr EvaluateSyscall(int sysno) const override { 183 switch (sysno) { 211 ResultExpr EvaluateSyscall(int sysno) const override { 212 switch (sysno) {
|
H A D | syscall_parameters_restrictions.h | 57 // Restrict |sysno| (which must be kill, tkill or tgkill) by allowing tgkill or 59 // |sysno| is tkill. 61 int sysno); 79 int sysno);
|
H A D | sigsys_handlers.cc | 66 uint32_t SyscallNumberToOffsetFromBase(uint32_t sysno) { argument 71 sysno = sysno - __NR_Linux; 74 if (sysno >= 1024) 75 sysno = 0; 77 return sysno; 80 // Print a seccomp-bpf failure to handle |sysno| to stderr in an 82 void PrintSyscallError(uint32_t sysno) { argument 83 if (sysno >= 1024) 84 sysno [all...] |
H A D | syscall_parameters_restrictions.cc | 233 ResultExpr RestrictKillTarget(pid_t target_pid, int sysno) { argument 234 switch (sysno) { 271 ResultExpr RestrictSchedTarget(pid_t target_pid, int sysno) { argument 272 switch (sysno) {
|
H A D | baseline_policy_unittest.cc | 218 #define TEST_BASELINE_SIGSYS(sysno) \ 220 SIGSYS_##sysno, \ 223 syscall(sysno, 0, 0, 0, 0, 0, 0); \
|
/external/libchrome/sandbox/linux/bpf_dsl/ |
H A D | policy.h | 24 virtual ResultExpr EvaluateSyscall(int sysno) const = 0;
|
H A D | bpf_dsl_unittest.cc | 120 ResultExpr EvaluateSyscall(int sysno) const override { 121 if (sysno == __NR_getpgid) { 125 if (sysno == __NR_setuid) { 152 ResultExpr EvaluateSyscall(int sysno) const override { 153 if (sysno == __NR_socketpair) { 198 ResultExpr EvaluateSyscall(int sysno) const override { 199 if (sysno == __NR_setresuid) { 238 ResultExpr EvaluateSyscall(int sysno) const override { 239 if (sysno == __NR_uname) { 261 ResultExpr EvaluateSyscall(int sysno) cons [all...] |
H A D | policy_compiler.h | 49 static bool IsRequiredForUnsafeTrap(int sysno);
|
/external/valgrind/none/tests/amd64-solaris/ |
H A D | syscall_return_args.c | 10 static void syscall_rval(int sysno, uint64_t *rval_hi, uint64_t *rval_lo) argument 21 : [INPUT1] "i" (GARBAGE), [SYSCALL_NUMBER] "g" (sysno) /* input */
|
/external/valgrind/coregrind/m_syswrap/ |
H A D | syswrap-main.c | 98 syscalls. Fasttraps do not take any parameters (except of the sysno in eax) 99 and never fail (if the sysno is valid). 414 return a1->sysno == a2->sysno 426 Bool eq_SyscallStatus ( UInt sysno, SyscallStatus* s1, SyscallStatus* s2 ) argument 429 if (s1->what == s2->what && sr_EQ( sysno, s1->sres, s2->sres )) 465 canonical->sysno = gst->guest_EAX; 477 canonical->sysno = gst->guest_RAX; 489 canonical->sysno = gst->guest_GPR0; 501 canonical->sysno 1712 Word sysno; local 2098 Word sysno; local [all...] |
H A D | priv_types_n_macros.h | 55 Word sysno; member in struct:SyscallArgs 179 /* A function to find the syscall table entry for a given sysno. If 196 SyscallTableEntry* ML_(get_linux_syscall_entry)( UInt sysno ); 208 SyscallTableEntry* ML_(get_solaris_syscall_entry)( UInt sysno ); 276 #define WRAPPER_ENTRY_X_(auxstr, sysno, name) \ 277 [sysno] = { vgSysWrap_##auxstr##_##name##_before, NULL } 278 #define WRAPPER_ENTRY_XY(auxstr, sysno, name) \ 279 [sysno] = { vgSysWrap_##auxstr##_##name##_before, \ 289 # define GENX_(sysno, name) WRAPPER_ENTRY_X_(generic, sysno, nam [all...] |
H A D | syswrap-arm64-linux.c | 846 #define PLAX_(sysno, name) WRAPPER_ENTRY_X_(arm64_linux, sysno, name) 847 #define PLAXY(sysno, name) WRAPPER_ENTRY_XY(arm64_linux, sysno, name) 1399 SyscallTableEntry* ML_(get_linux_syscall_entry) ( UInt sysno ) 1405 if (sysno < syscall_main_table_size) { 1406 SyscallTableEntry* sys = &syscall_main_table[sysno]; 1414 //ZZ switch (sysno) {
|
H A D | syswrap-ppc64-linux.c | 768 #define PLAX_(sysno, name) WRAPPER_ENTRY_X_(ppc64_linux, sysno, name) 769 #define PLAXY(sysno, name) WRAPPER_ENTRY_XY(ppc64_linux, sysno, name) 1168 SyscallTableEntry* ML_(get_linux_syscall_entry) ( UInt sysno ) 1174 if (sysno < syscall_table_size) { 1175 SyscallTableEntry* sys = &syscall_table[sysno];
|
H A D | syswrap-arm-linux.c | 748 #define PLAX_(sysno, name) WRAPPER_ENTRY_X_(arm_linux, sysno, name) 749 #define PLAXY(sysno, name) WRAPPER_ENTRY_XY(arm_linux, sysno, name) 1237 SyscallTableEntry* ML_(get_linux_syscall_entry) ( UInt sysno ) 1243 if (sysno < syscall_main_table_size) { 1244 SyscallTableEntry* sys = &syscall_main_table[sysno]; 1252 switch (sysno) {
|
/external/valgrind/coregrind/ |
H A D | m_syscall.c | 562 sysno in r7 589 sysno in r8 861 return address at 0(esp), a sysno in eax, a result in edx:eax, the carry 880 /* Fasttrap syscall.. no parameters, a sysno in eax, a result in edx:eax, 881 never fails (if the sysno is valid). */ 903 0(rsp), a sysno in rax, a result in rdx:rax, the carry flag set on 926 /* Fasttrap syscall.. no parameters, a sysno in rax, a result in rdx:rax, 927 never fails (if the sysno is valid). */ 947 SysRes VG_(do_syscall) ( UWord sysno, UWord a1, UWord a2, UWord a3, argument 952 UWord val = do_syscall_WRK(sysno,a [all...] |
/external/libchrome/sandbox/linux/seccomp-bpf/ |
H A D | sandbox_bpf.h | 82 static bool IsRequiredForUnsafeTrap(int sysno);
|
H A D | bpf_tests_unittest.cc | 52 ResultExpr EvaluateSyscall(int sysno) const override { 53 DCHECK(SandboxBPF::IsValidSyscallNumber(sysno));
|
H A D | sandbox_bpf.cc | 208 bool SandboxBPF::IsRequiredForUnsafeTrap(int sysno) { argument 209 return bpf_dsl::PolicyCompiler::IsRequiredForUnsafeTrap(sysno);
|
H A D | syscall_unittest.cc | 116 ResultExpr EvaluateSyscall(int sysno) const override { 117 DCHECK(SandboxBPF::IsValidSyscallNumber(sysno)); 118 if (sysno == __NR_uname) {
|
/external/valgrind/include/ |
H A D | pub_tool_basics.h | 232 static inline Bool sr_EQ ( UInt sysno, SysRes sr1, SysRes sr2 ) { argument 250 Bool useEx = sysno == __nr_pipe || sysno == __nr_pipe2; 268 static inline Bool sr_EQ ( UInt sysno, SysRes sr1, SysRes sr2 ) { argument 269 /* sysno is ignored for Linux/not-MIPS */ 328 static inline Bool sr_EQ ( UInt sysno, SysRes sr1, SysRes sr2 ) { argument 329 /* sysno is ignored for Darwin */ 348 static inline Bool sr_EQ ( UInt sysno, SysRes sr1, SysRes sr2 ) { argument 349 /* sysno is ignored for Solaris */
|
/external/valgrind/include/vki/ |
H A D | vki-scnums-solaris.h | 57 #define VG_SOLARIS_SYSCALL_CONSTRUCT_FASTTRAP(sysno) \ 59 | (sysno)) 60 #define VG_SOLARIS_SYSNO_CLASS(sysno) \ 61 ((sysno) >> VG_SOLARIS_SYSCALL_CLASS_SHIFT) 62 #define VG_SOLARIS_SYSNO_INDEX(sysno) \ 63 ((sysno) & VG_SOLARIS_SYSCALL_NUMBER_MASK)
|
H A D | vki-scnums-darwin.h | 93 #define VG_DARWIN_SYSNO_INDEX(sysno) ((sysno) & VG_DARWIN_SYSCALL_NUMBER_MASK) 94 #define VG_DARWIN_SYSNO_CLASS(sysno) ((sysno) >> VG_DARWIN_SYSCALL_CLASS_SHIFT) 102 # define VG_DARWIN_SYSNO_FOR_KERNEL(sysno) \ 103 ((VG_DARWIN_SYSNO_CLASS(sysno) == VG_DARWIN_SYSCALL_CLASS_MACH) \ 104 ? -VG_DARWIN_SYSNO_INDEX(sysno) \ 105 : VG_DARWIN_SYSNO_INDEX(sysno) \ 110 # define VG_DARWIN_SYSNO_FOR_KERNEL(sysno) (sysno) [all...] |