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.cc107 using sandbox::bpf_dsl::ResultExpr;
115 ResultExpr RestrictCloneToThreadsAndEPERMFork() { in RestrictCloneToThreadsAndEPERMFork()
138 ResultExpr RestrictPrctl() { in RestrictPrctl()
153 ResultExpr RestrictIoctl() { in RestrictIoctl()
159 ResultExpr RestrictMmapFlags() { in RestrictMmapFlags()
172 ResultExpr RestrictMprotectFlags() { in RestrictMprotectFlags()
182 ResultExpr RestrictFcntlCommands() { in RestrictFcntlCommands()
213 ResultExpr RestrictSocketcallCommand() { in RestrictSocketcallCommand()
233 ResultExpr RestrictKillTarget(pid_t target_pid, int sysno) { in RestrictKillTarget()
248 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()
116 ResultExpr EvaluateSyscall(int sysno) const override { in EvaluateSyscall()
182 ResultExpr EvaluateSyscall(int sysno) const override { in EvaluateSyscall()
211 ResultExpr EvaluateSyscall(int sysno) const override { in EvaluateSyscall()
Dbaseline_policy.h34 bpf_dsl::ResultExpr EvaluateSyscall(int system_call_number) const override;
35 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 typedef scoped_refptr<const internal::ResultExprImpl> ResultExpr; typedef
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(const BoolExpr& cond, const ResultExpr& then_result);
185 Elser ElseIf(const BoolExpr& cond, const ResultExpr& then_result) const;
189 ResultExpr Else(const ResultExpr& else_result) const;
[all …]
Dbpf_dsl.cc78 const ResultExpr& then_result, in IfThenResultExprImpl()
79 const ResultExpr& else_result) in IfThenResultExprImpl()
98 ResultExpr then_result_;
99 ResultExpr else_result_;
245 ResultExpr Allow() { in Allow()
246 return ResultExpr(new const ReturnResultExprImpl(SECCOMP_RET_ALLOW)); in Allow()
249 ResultExpr Error(int err) { in Error()
251 return ResultExpr(new const ReturnResultExprImpl(SECCOMP_RET_ERRNO + err)); in Error()
254 ResultExpr Kill() { in Kill()
255 return ResultExpr(new const ReturnResultExprImpl(SECCOMP_RET_KILL)); in Kill()
[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.h23 typedef scoped_refptr<const internal::ResultExprImpl> ResultExpr; typedef
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.cc27 using sandbox::bpf_dsl::ResultExpr;
52 ResultExpr EvaluateSyscall(int sysno) const override { in EvaluateSyscall()
94 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.cc118 bpf_dsl::ResultExpr SandboxPanic(const char* error) { in SandboxPanic()
/external/clang/lib/Sema/
DSemaInit.cpp1276 Expr *ResultExpr = nullptr; in CheckScalarType() local
1281 ResultExpr = Result.getAs<Expr>(); in CheckScalarType()
1283 if (ResultExpr != expr) { in CheckScalarType()
1285 IList->setInit(Index, ResultExpr); in CheckScalarType()
1291 UpdateStructuredListElement(StructuredList, StructuredIndex, ResultExpr); in CheckScalarType()
1386 Expr *ResultExpr = nullptr; in CheckVectorType() local
1390 ResultExpr = Result.getAs<Expr>(); in CheckVectorType()
1392 if (ResultExpr != Init) { in CheckVectorType()
1394 IList->setInit(Index, ResultExpr); in CheckVectorType()
1401 ResultExpr); in CheckVectorType()