/external/libchrome/sandbox/linux/seccomp-bpf-helpers/ |
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...] |
baseline_policy.cc | 41 bool IsBaselinePolicyAllowed(int sysno) { 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) || [all...] |
syscall_sets.cc | 17 bool SyscallSets::IsKill(int sysno) { 18 switch (sysno) { 28 bool SyscallSets::IsAllowedGettime(int sysno) { 29 switch (sysno) { 53 bool SyscallSets::IsCurrentDirectory(int sysno) { 54 switch (sysno) { 64 bool SyscallSets::IsUmask(int sysno) { 65 switch (sysno) { 77 bool SyscallSets::IsFileSystem(int sysno) { 78 switch (sysno) { [all...] |
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) {
|
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);
|
sigsys_handlers.cc | 66 uint32_t SyscallNumberToOffsetFromBase(uint32_t sysno) { 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) { 83 if (sysno >= 1024) 84 sysno = 0 [all...] |
syscall_parameters_restrictions.cc | 233 ResultExpr RestrictKillTarget(pid_t target_pid, int sysno) { 234 switch (sysno) { 271 ResultExpr RestrictSchedTarget(pid_t target_pid, int sysno) { 272 switch (sysno) {
|
baseline_policy_unittest.cc | 218 #define TEST_BASELINE_SIGSYS(sysno) \ 220 SIGSYS_##sysno, \ 223 syscall(sysno, 0, 0, 0, 0, 0, 0); \
|
/external/valgrind/memcheck/tests/solaris/ |
thr_daemon_exit_standalone.c | 51 "movl %[SYSNO], %%eax\n" 55 : [TS] "g" (&ts), [SYSNO] "n" (SYS_nanosleep) 59 "movq %[SYSNO], %%rax\n" 64 : [TS] "g" (&ts), [SYSNO] "n" (SYS_nanosleep) 74 "movl %[SYSNO], %%eax\n" 77 : [SYSNO] "n" (SYS_lwp_exit) 81 "movq %[SYSNO], %%rax\n" 84 : [SYSNO] "n" (SYS_lwp_exit) 105 "movl %[SYSNO], %%eax\n" 111 [SIZE] "g" (stacksize), [SYSNO] "n" (SYS_mmap [all...] |
/external/libchrome/sandbox/linux/bpf_dsl/ |
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) const override [all...] |
policy.h | 24 virtual ResultExpr EvaluateSyscall(int sysno) const = 0;
|
/external/valgrind/none/tests/amd64-solaris/ |
syscall_return_args.c | 10 static void syscall_rval(int sysno, uint64_t *rval_hi, uint64_t *rval_lo) 21 : [INPUT1] "i" (GARBAGE), [SYSCALL_NUMBER] "g" (sysno) /* input */
|
/cts/tests/tests/os/jni/seccomp-tests/ |
local-modifications-strict-args-fd88d16.diff | 57 + int sysno = __NR_mmap; 59 + int sysno = __NR_mmap2; 65 + BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, sysno, 1, 0), 88 + map1 = (void *)syscall(sysno, 92 + map2 = (void *)syscall(sysno,
|
/external/valgrind/coregrind/m_syswrap/ |
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, name [all...] |
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 ) 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 = gst->guest_GPR0 1712 Word sysno; local 2098 Word sysno; local [all...] |
syswrap-mips64-linux.c | 627 #define PLAX_(sysno, name) WRAPPER_ENTRY_X_(mips_linux, sysno, name) 628 #define PLAXY(sysno, name) WRAPPER_ENTRY_XY(mips_linux, sysno, name) 921 SyscallTableEntry * ML_(get_linux_syscall_entry) ( UInt sysno ) [all...] |
syswrap-s390x-linux.c | 622 #define PLAX_(sysno, name) WRAPPER_ENTRY_X_(s390x_linux, sysno, name) 623 #define PLAXY(sysno, name) WRAPPER_ENTRY_XY(s390x_linux, sysno, name) [all...] |
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) [all...] |
/external/valgrind/coregrind/ |
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, 952 UWord val = do_syscall_WRK(sysno,a1,a2,a3,a4,a5,a6) [all...] |
/external/valgrind/include/vki/ |
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)
|
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...] |
/external/libchrome/sandbox/linux/seccomp-bpf/ |
bpf_tests_unittest.cc | 52 ResultExpr EvaluateSyscall(int sysno) const override { 53 DCHECK(SandboxBPF::IsValidSyscallNumber(sysno));
|
syscall_unittest.cc | 116 ResultExpr EvaluateSyscall(int sysno) const override { 117 DCHECK(SandboxBPF::IsValidSyscallNumber(sysno)); 118 if (sysno == __NR_uname) {
|
sandbox_bpf.cc | 208 bool SandboxBPF::IsRequiredForUnsafeTrap(int sysno) { 209 return bpf_dsl::PolicyCompiler::IsRequiredForUnsafeTrap(sysno);
|
/external/valgrind/include/ |
pub_tool_basics.h | 232 static inline Bool sr_EQ ( UInt sysno, SysRes sr1, SysRes sr2 ) { 250 Bool useEx = sysno == __nr_pipe || sysno == __nr_pipe2; 268 static inline Bool sr_EQ ( UInt sysno, SysRes sr1, SysRes sr2 ) { 269 /* sysno is ignored for Linux/not-MIPS */ 328 static inline Bool sr_EQ ( UInt sysno, SysRes sr1, SysRes sr2 ) { 329 /* sysno is ignored for Darwin */ 348 static inline Bool sr_EQ ( UInt sysno, SysRes sr1, SysRes sr2 ) { 349 /* sysno is ignored for Solaris */
|