Home
last modified time | relevance | path

Searched refs:ResultExpr (Results 1 – 19 of 19) sorted by relevance

/external/libchrome/sandbox/linux/seccomp-bpf-helpers/
Dsyscall_parameters_restrictions.h24 SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictCloneToThreadsAndEPERMFork();
28 SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictPrctl();
32 SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictIoctl();
38 SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictMmapFlags();
42 SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictMprotectFlags();
49 SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFcntlCommands();
54 SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSocketcallCommand();
60 SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictKillTarget(pid_t target_pid,
64 SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFutex();
68 SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictGetSetpriority(pid_t target_pid);
[all …]
Dsyscall_parameters_restrictions.cc118 using sandbox::bpf_dsl::ResultExpr;
126 ResultExpr RestrictCloneToThreadsAndEPERMFork() { in RestrictCloneToThreadsAndEPERMFork()
149 ResultExpr RestrictPrctl() { in RestrictPrctl()
190 ResultExpr RestrictIoctl() { in RestrictIoctl()
196 ResultExpr RestrictMmapFlags() { in RestrictMmapFlags()
209 ResultExpr RestrictMprotectFlags() { in RestrictMprotectFlags()
219 ResultExpr RestrictFcntlCommands() { in RestrictFcntlCommands()
250 ResultExpr RestrictSocketcallCommand() { in RestrictSocketcallCommand()
270 ResultExpr RestrictKillTarget(pid_t target_pid, int sysno) { in RestrictKillTarget()
285 ResultExpr RestrictFutex() { in RestrictFutex()
[all …]
Dsigsys_handlers.h63 SANDBOX_EXPORT bpf_dsl::ResultExpr CrashSIGSYS();
64 SANDBOX_EXPORT bpf_dsl::ResultExpr CrashSIGSYSClone();
65 SANDBOX_EXPORT bpf_dsl::ResultExpr CrashSIGSYSPrctl();
66 SANDBOX_EXPORT bpf_dsl::ResultExpr CrashSIGSYSIoctl();
67 SANDBOX_EXPORT bpf_dsl::ResultExpr CrashSIGSYSKill();
68 SANDBOX_EXPORT bpf_dsl::ResultExpr CrashSIGSYSFutex();
69 SANDBOX_EXPORT bpf_dsl::ResultExpr RewriteSchedSIGSYS();
Dsigsys_handlers.cc247 bpf_dsl::ResultExpr CrashSIGSYS() { in CrashSIGSYS()
251 bpf_dsl::ResultExpr CrashSIGSYSClone() { in CrashSIGSYSClone()
255 bpf_dsl::ResultExpr CrashSIGSYSPrctl() { in CrashSIGSYSPrctl()
259 bpf_dsl::ResultExpr CrashSIGSYSIoctl() { in CrashSIGSYSIoctl()
263 bpf_dsl::ResultExpr CrashSIGSYSKill() { in CrashSIGSYSKill()
267 bpf_dsl::ResultExpr CrashSIGSYSFutex() { in CrashSIGSYSFutex()
271 bpf_dsl::ResultExpr RewriteSchedSIGSYS() { in RewriteSchedSIGSYS()
Dsyscall_parameters_restrictions_unittests.cc44 using sandbox::bpf_dsl::ResultExpr;
51 ResultExpr EvaluateSyscall(int sysno) const override { in EvaluateSyscall()
119 ResultExpr EvaluateSyscall(int sysno) const override { in EvaluateSyscall()
187 ResultExpr EvaluateSyscall(int sysno) const override { in EvaluateSyscall()
216 ResultExpr EvaluateSyscall(int sysno) const override { in EvaluateSyscall()
Dbaseline_policy.h36 bpf_dsl::ResultExpr EvaluateSyscall(int system_call_number) const override;
37 bpf_dsl::ResultExpr InvalidSyscall() const override;
Dbaseline_policy.cc35 using sandbox::bpf_dsl::ResultExpr;
102 ResultExpr EvaluateSyscallImpl(int fs_denied_errno, in EvaluateSyscallImpl()
270 ResultExpr BaselinePolicy::EvaluateSyscall(int sysno) const { in EvaluateSyscall()
280 ResultExpr BaselinePolicy::InvalidSyscall() const { in InvalidSyscall()
/external/libchrome/sandbox/linux/bpf_dsl/
Dbpf_dsl.h80 using ResultExpr = std::shared_ptr<const internal::ResultExprImpl>; variable
87 SANDBOX_EXPORT ResultExpr Allow();
93 SANDBOX_EXPORT ResultExpr Error(int err);
96 SANDBOX_EXPORT ResultExpr Kill();
101 SANDBOX_EXPORT ResultExpr Trace(uint16_t aux);
106 SANDBOX_EXPORT ResultExpr
117 SANDBOX_EXPORT ResultExpr
176 SANDBOX_EXPORT Elser If(BoolExpr cond, ResultExpr then_result);
185 Elser ElseIf(BoolExpr cond, ResultExpr then_result) const;
189 ResultExpr Else(ResultExpr else_result) const;
[all …]
Dbpf_dsl.cc75 ResultExpr then_result, in IfThenResultExprImpl()
76 ResultExpr else_result) in IfThenResultExprImpl()
96 ResultExpr then_result_;
97 ResultExpr else_result_;
238 ResultExpr Allow() { in Allow()
242 ResultExpr Error(int err) { in Error()
247 ResultExpr Kill() { in Kill()
251 ResultExpr Trace(uint16_t aux) { in Trace()
255 ResultExpr Trap(TrapRegistry::TrapFnc trap_func, const void* aux) { in Trap()
259 ResultExpr UnsafeTrap(TrapRegistry::TrapFnc trap_func, const void* aux) { in UnsafeTrap()
[all …]
Dbpf_dsl_unittest.cc120 ResultExpr EvaluateSyscall(int sysno) const override { in EvaluateSyscall()
152 ResultExpr EvaluateSyscall(int sysno) const override { in EvaluateSyscall()
198 ResultExpr EvaluateSyscall(int sysno) const override { in EvaluateSyscall()
238 ResultExpr EvaluateSyscall(int sysno) const override { in EvaluateSyscall()
261 ResultExpr EvaluateSyscall(int sysno) const override { in EvaluateSyscall()
289 ResultExpr EvaluateSyscall(int sysno) const override {
320 ResultExpr EvaluateSyscall(int sysno) const override { in EvaluateSyscall()
363 ResultExpr EvaluateSyscall(int sysno) const override { in EvaluateSyscall()
397 ResultExpr EvaluateSyscall(int sysno) const override { in EvaluateSyscall()
439 ResultExpr allow = Allow(); in TEST()
[all …]
Dpolicy.h24 virtual ResultExpr EvaluateSyscall(int sysno) const = 0;
28 virtual ResultExpr InvalidSyscall() const;
Dpolicy_compiler.h28 using PanicFunc = bpf_dsl::ResultExpr (*)(const char* error);
123 CodeGen::Node CompileResult(const ResultExpr& res);
Dpolicy.cc14 ResultExpr Policy::InvalidSyscall() const { in InvalidSyscall()
Dbpf_dsl_forward.h24 using ResultExpr = std::shared_ptr<const internal::ResultExprImpl>; variable
Dpolicy_compiler.cc58 ResultExpr DefaultPanic(const char* error) { in DefaultPanic()
277 CodeGen::Node PolicyCompiler::CompileResult(const ResultExpr& res) { in CompileResult()
/external/libchrome/sandbox/linux/seccomp-bpf/
Dbpf_tests_unittest.cc28 using sandbox::bpf_dsl::ResultExpr;
53 ResultExpr EvaluateSyscall(int sysno) const override { in EvaluateSyscall()
95 ResultExpr EvaluateSyscall(int system_call_number) const override { in EvaluateSyscall()
Dsyscall_unittest.cc30 using sandbox::bpf_dsl::ResultExpr;
116 ResultExpr EvaluateSyscall(int sysno) const override { in EvaluateSyscall()
Dsandbox_bpf.cc117 bpf_dsl::ResultExpr SandboxPanic(const char* error) { in SandboxPanic()
/external/clang/lib/Sema/
DSemaInit.cpp1338 Expr *ResultExpr = nullptr; in CheckScalarType() local
1343 ResultExpr = Result.getAs<Expr>(); in CheckScalarType()
1345 if (ResultExpr != expr) { in CheckScalarType()
1347 IList->setInit(Index, ResultExpr); in CheckScalarType()
1353 UpdateStructuredListElement(StructuredList, StructuredIndex, ResultExpr); in CheckScalarType()
1448 Expr *ResultExpr = nullptr; in CheckVectorType() local
1452 ResultExpr = Result.getAs<Expr>(); in CheckVectorType()
1454 if (ResultExpr != Init) { in CheckVectorType()
1456 IList->setInit(Index, ResultExpr); in CheckVectorType()
1463 ResultExpr); in CheckVectorType()