Home
last modified time | relevance | path

Searched refs:Trap (Results 1 – 25 of 34) sorted by relevance

12

/external/chromium_org/sandbox/linux/seccomp-bpf/
Dtrap.cc70 Trap::Trap() in Trap() function in sandbox::Trap
97 Trap* Trap::GetInstance() { in GetInstance()
104 global_trap_ = new Trap(); in GetInstance()
112 void Trap::SigSysAction(int nr, siginfo_t* info, void* void_context) { in SigSysAction()
121 void Trap::SigSys(int nr, siginfo_t* info, void* void_context) { in SigSys()
207 bool Trap::TrapKey::operator<(const TrapKey& o) const { in operator <()
217 ErrorCode Trap::MakeTrap(TrapFnc fnc, const void* aux, bool safe) { in MakeTrap()
221 ErrorCode Trap::MakeTrapImpl(TrapFnc fnc, const void* aux, bool safe) { in MakeTrapImpl()
316 bool Trap::SandboxDebuggingAllowedByUser() const { in SandboxDebuggingAllowedByUser()
321 bool Trap::EnableUnsafeTrapsInSigSysHandler() { in EnableUnsafeTrapsInSigSysHandler()
[all …]
Derrorcode_unittest.cc25 ErrorCode e3 = sandbox.Trap(NULL, NULL); in SANDBOX_TEST()
29 SANDBOX_TEST(ErrorCode, Trap) { in SANDBOX_TEST() argument
31 ErrorCode e0 = sandbox.Trap(NULL, "a"); in SANDBOX_TEST()
32 ErrorCode e1 = sandbox.Trap(NULL, "b"); in SANDBOX_TEST()
36 ErrorCode e2 = sandbox.Trap(NULL, "a"); in SANDBOX_TEST()
52 ErrorCode e4 = sandbox.Trap(NULL, "a"); in SANDBOX_TEST()
53 ErrorCode e5 = sandbox.Trap(NULL, "b"); in SANDBOX_TEST()
54 ErrorCode e6 = sandbox.Trap(NULL, "a"); in SANDBOX_TEST()
73 ErrorCode e4 = sandbox.Trap(NULL, "a"); in SANDBOX_TEST()
74 ErrorCode e5 = sandbox.Trap(NULL, "b"); in SANDBOX_TEST()
[all …]
Dtrap.h28 class Trap {
67 ~Trap();
85 static Trap* GetInstance();
99 static Trap* global_trap_;
111 DISALLOW_IMPLICIT_CONSTRUCTORS(Trap);
Derrorcode.h152 friend class Trap; variable
157 ErrorCode(Trap::TrapFnc fnc, const void* aux, bool safe, uint16_t id);
173 Trap::TrapFnc fnc_; // Callback function and arg, if trap was
Dsandbox_bpf.h123 ErrorCode Trap(Trap::TrapFnc fnc, const void* aux);
135 ErrorCode UnsafeTrap(Trap::TrapFnc fnc, const void* aux);
Dsandbox_bpf.cc132 Trap::ErrorCodeFromTrapId(insn->k & SECCOMP_RET_DATA); in CheckForUnsafeErrorCodes()
168 insn->k = sandbox->Trap(ReturnErrno, in RedirectToUserspace()
190 return sandbox_compiler->Trap( in EvaluateSyscall()
627 if (!Trap::EnableUnsafeTrapsInSigSysHandler()) { in AssembleFilter()
984 ErrorCode SandboxBPF::Trap(Trap::TrapFnc fnc, const void* aux) { in Trap() function in sandbox::SandboxBPF
985 return Trap::MakeTrap(fnc, aux, true /* Safe Trap */); in Trap()
988 ErrorCode SandboxBPF::UnsafeTrap(Trap::TrapFnc fnc, const void* aux) { in UnsafeTrap()
989 return Trap::MakeTrap(fnc, aux, false /* Unsafe Trap */); in UnsafeTrap()
1017 return Trap(BPFFailure, const_cast<char*>(msg)); in Kill()
Dsandbox_bpf_unittest.cc89 return sandbox->Trap(FakeGetPid, aux); in VerboseAPITestingPolicy()
181 return sandbox->Trap(EnomemHandler, aux); in BlacklistNanosleepPolicySigsys()
505 SANDBOX_ASSERT(Trap::EnableUnsafeTrapsInSigSysHandler() == false); in SANDBOX_TEST()
507 SANDBOX_ASSERT(Trap::EnableUnsafeTrapsInSigSysHandler() == false); in SANDBOX_TEST()
509 SANDBOX_ASSERT(Trap::EnableUnsafeTrapsInSigSysHandler() == true); in SANDBOX_TEST()
734 sandbox->Trap(BrokerOpenTrapHandler, iob->broker_process())); in DenyOpenPolicy()
1687 sandbox->Trap(PthreadTrapHandler, "Unknown mask")))); in PthreadPolicyEquality()
1716 sandbox->Trap(PthreadTrapHandler, in PthreadPolicyBitMask()
1726 sandbox->Trap(PthreadTrapHandler, in PthreadPolicyBitMask()
1730 sandbox->Trap(PthreadTrapHandler, in PthreadPolicyBitMask()
Derrorcode.cc25 ErrorCode::ErrorCode(Trap::TrapFnc fnc, const void* aux, bool safe, uint16_t id) in ErrorCode()
Ddemo.cc335 sandbox->Trap(DefaultHandler, NULL))); in Evaluator()
370 return sandbox->Trap(DefaultHandler, NULL); in Evaluator()
Dsyscall_unittest.cc86 return sandbox->Trap(CopySyscallArgsToAux, aux); in CopyAllArgsOnUnamePolicy()
/external/chromium_org/chrome/browser/ui/libgtk2ui/
Dx11_input_method_context_impl_gtk2_unittest.cc20 EXPECT_FALSE(trap.Trap(base::string16())); in TEST_F()
25 EXPECT_FALSE(trap.Trap(UTF8ToUTF16("T"))); in TEST_F()
27 EXPECT_FALSE(trap.Trap(UTF8ToUTF16("true"))); in TEST_F()
32 EXPECT_FALSE(trap.Trap(UTF8ToUTF16("t"))); in TEST_F()
38 EXPECT_FALSE(trap.Trap(UTF8ToUTF16("t"))); in TEST_F()
42 EXPECT_TRUE(trap.Trap(UTF8ToUTF16("t"))); in TEST_F()
49 EXPECT_FALSE(trap.Trap(UTF8ToUTF16("f"))); in TEST_F()
51 EXPECT_TRUE(trap.Trap(UTF8ToUTF16("t"))); in TEST_F()
Dx11_input_method_context_impl_gtk2.h92 bool Trap(const base::string16& text);
Dx11_input_method_context_impl_gtk2.cc260 if (commit_signal_trap_.Trap(text_in_utf16)) in OnCommit()
315 bool X11InputMethodContextImplGtk2::GtkCommitSignalTrap::Trap( in Trap() function in libgtk2ui::X11InputMethodContextImplGtk2::GtkCommitSignalTrap
/external/chromium_org/sandbox/linux/seccomp-bpf-helpers/
Dsyscall_parameters_restrictions.cc81 sandbox->Trap(SIGSYSCloneFailure, NULL)))); in RestrictCloneToThreadsAndEPERMFork()
96 sandbox->Trap(SIGSYSPrctlFailure, NULL)))); in RestrictPrctl()
104 sandbox->Trap(SIGSYSIoctlFailure, NULL))); in RestrictIoctl()
118 sandbox->Trap(CrashSIGSYS_Handler, NULL), in RestrictMmapFlags()
130 sandbox->Trap(CrashSIGSYS_Handler, NULL), in RestrictMprotectFlags()
162 sandbox->Trap(CrashSIGSYS_Handler, NULL), in RestrictFcntlCommands()
185 sandbox->Trap(CrashSIGSYS_Handler, NULL)))))))))); in RestrictFcntlCommands()
Dbaseline_policy.cc96 sandbox->Trap(CrashSIGSYS_Handler, NULL)); in EvaluateSyscallImpl()
152 return sandbox->Trap(CrashSIGSYS_Handler, NULL); in EvaluateSyscallImpl()
155 return sandbox->Trap(CrashSIGSYS_Handler, NULL); in EvaluateSyscallImpl()
/external/mksh/src/
Dhistrap.c32 Trap sigtraps[NSIG + 1];
1073 Trap *
1077 Trap *p; in gettrap()
1121 Trap *p = &sigtraps[i]; in trapsig()
1155 Trap *p; in fatal_trap_check()
1174 Trap *p; in trap_pending()
1191 Trap *p; in runtraps()
1219 runtrap(Trap *p, bool is_last) in runtrap()
1282 Trap *p; in cleartraps()
1299 Trap *p; in restoresigs()
[all …]
Dsh.h853 } Trap; typedef
883 extern Trap sigtraps[NSIG+1];
1793 Trap *gettrap(const char *, bool);
1799 void runtrap(Trap *, bool);
1802 void settrap(Trap *, const char *);
1805 int setsig(Trap *, sig_t, int);
1806 void setexecsig(Trap *, int);
/external/valgrind/main/gdbserver_tests/
Dmcsignopass.stdinB.gdb8 # Trap the below signals, we make them stop and then continue.
/external/clang/lib/Sema/
DSemaTemplateDeduction.cpp2135 Sema::SFINAETrap Trap(S); in FinishTemplateArgumentDeduction() local
2242 if (Trap.hasErrorOccurred()) in FinishTemplateArgumentDeduction()
2266 SFINAETrap Trap(*this); in DeduceTemplateArguments() local
2283 if (Trap.hasErrorOccurred()) in DeduceTemplateArguments()
2300 Sema::SFINAETrap Trap(S); in FinishTemplateArgumentDeduction() local
2397 if (Trap.hasErrorOccurred()) in FinishTemplateArgumentDeduction()
2422 SFINAETrap Trap(*this); in DeduceTemplateArguments() local
2437 if (Trap.hasErrorOccurred()) in DeduceTemplateArguments()
2505 SFINAETrap Trap(*this); in SubstituteExplicitTemplateArguments() local
2529 Builder) || Trap.hasErrorOccurred()) { in SubstituteExplicitTemplateArguments()
[all …]
DSemaExprMember.cpp902 SFINAETrap Trap(*this, true); in BuildMemberReferenceExpr() local
908 if (RetryExpr.isUsable() && !Trap.hasErrorOccurred()) { in BuildMemberReferenceExpr()
915 if (Trap.hasErrorOccurred()) in BuildMemberReferenceExpr()
DSemaDeclCXX.cpp7943 DiagnosticErrorTrap Trap(Diags); in DefineImplicitDefaultConstructor() local
7945 Trap.hasErrorOccurred()) { in DefineImplicitDefaultConstructor()
8281 DiagnosticErrorTrap Trap(Diags); in DefineInheritingConstructor() local
8283 Trap.hasErrorOccurred()) { in DefineInheritingConstructor()
8413 DiagnosticErrorTrap Trap(Diags); in DefineImplicitDestructor() local
8417 if (CheckDestructor(Destructor) || Trap.hasErrorOccurred()) { in DefineImplicitDestructor()
8995 DiagnosticErrorTrap Trap(Diags); in DefineImplicitCopyAssignment() local
9168 if (Trap.hasErrorOccurred()) { in DefineImplicitCopyAssignment()
9456 DiagnosticErrorTrap Trap(Diags); in DefineImplicitMoveAssignment() local
9631 if (Trap.hasErrorOccurred()) { in DefineImplicitMoveAssignment()
[all …]
/external/chromium_org/content/common/sandbox_linux/
Dbpf_gpu_policy_linux.cc171 return sandbox->Trap(GpuSIGSYS_Handler, broker_process_); in EvaluateSyscall()
Dsandbox_seccomp_bpf_linux.cc87 return sandbox->Trap(sandbox::CrashSIGSYS_Handler, NULL); in EvaluateSyscall()
/external/chromium/chrome/browser/ui/cocoa/tabs/
Dtab_strip_view.mm141 // Trap double-clicks and make them miniaturize the browser window.
/external/chromium_org/chrome/browser/ui/cocoa/tabs/
Dtab_strip_view.mm168 // Trap double-clicks and make them miniaturize the browser window.

12