Home
last modified time | relevance | path

Searched refs:bpf_dsl (Results 1 – 25 of 38) sorted by relevance

12

/external/libchrome/sandbox/linux/
Dsandbox_linux.gypi126 'bpf_dsl/bpf_dsl.cc',
127 'bpf_dsl/bpf_dsl.h',
128 'bpf_dsl/bpf_dsl_forward.h',
129 'bpf_dsl/bpf_dsl_impl.h',
130 'bpf_dsl/codegen.cc',
131 'bpf_dsl/codegen.h',
132 'bpf_dsl/cons.h',
133 'bpf_dsl/errorcode.h',
134 'bpf_dsl/linux_syscall_ranges.h',
135 'bpf_dsl/policy.cc',
[all …]
DBUILD.gn130 "bpf_dsl/bpf_dsl_unittest.cc",
131 "bpf_dsl/codegen_unittest.cc",
132 "bpf_dsl/cons_unittest.cc",
133 "bpf_dsl/dump_bpf.cc",
134 "bpf_dsl/dump_bpf.h",
135 "bpf_dsl/syscall_set_unittest.cc",
136 "bpf_dsl/test_trap_registry.cc",
137 "bpf_dsl/test_trap_registry.h",
138 "bpf_dsl/test_trap_registry_unittest.cc",
139 "bpf_dsl/verifier.cc",
[all …]
Dsandbox_linux_test_sources.gypi43 'bpf_dsl/bpf_dsl_unittest.cc',
44 'bpf_dsl/codegen_unittest.cc',
45 'bpf_dsl/cons_unittest.cc',
46 'bpf_dsl/dump_bpf.cc',
47 'bpf_dsl/dump_bpf.h',
48 'bpf_dsl/syscall_set_unittest.cc',
49 'bpf_dsl/test_trap_registry.cc',
50 'bpf_dsl/test_trap_registry.h',
51 'bpf_dsl/test_trap_registry_unittest.cc',
52 'bpf_dsl/verifier.cc',
[all …]
Dsandbox_linux_nacl_nonsfi.gyp32 'bpf_dsl/bpf_dsl.cc',
33 'bpf_dsl/codegen.cc',
34 'bpf_dsl/policy.cc',
35 'bpf_dsl/policy_compiler.cc',
36 'bpf_dsl/syscall_set.cc',
/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 …]
Dsigsys_handlers.cc247 bpf_dsl::ResultExpr CrashSIGSYS() { in CrashSIGSYS()
248 return bpf_dsl::Trap(CrashSIGSYS_Handler, NULL); in CrashSIGSYS()
251 bpf_dsl::ResultExpr CrashSIGSYSClone() { in CrashSIGSYSClone()
252 return bpf_dsl::Trap(SIGSYSCloneFailure, NULL); in CrashSIGSYSClone()
255 bpf_dsl::ResultExpr CrashSIGSYSPrctl() { in CrashSIGSYSPrctl()
256 return bpf_dsl::Trap(SIGSYSPrctlFailure, NULL); in CrashSIGSYSPrctl()
259 bpf_dsl::ResultExpr CrashSIGSYSIoctl() { in CrashSIGSYSIoctl()
260 return bpf_dsl::Trap(SIGSYSIoctlFailure, NULL); in CrashSIGSYSIoctl()
263 bpf_dsl::ResultExpr CrashSIGSYSKill() { in CrashSIGSYSKill()
264 return bpf_dsl::Trap(SIGSYSKillFailure, NULL); in CrashSIGSYSKill()
[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();
Dsyscall_parameters_restrictions_unittests.cc43 using sandbox::bpf_dsl::Allow;
44 using sandbox::bpf_dsl::ResultExpr;
46 class RestrictClockIdPolicy : public bpf_dsl::Policy {
114 class RestrictSchedPolicy : public bpf_dsl::Policy {
182 class RestrictPrlimit64Policy : public bpf_dsl::Policy {
211 class RestrictGetrusagePolicy : public bpf_dsl::Policy {
Dbaseline_policy.h28 class SANDBOX_EXPORT BaselinePolicy : public bpf_dsl::Policy {
36 bpf_dsl::ResultExpr EvaluateSyscall(int system_call_number) const override;
37 bpf_dsl::ResultExpr InvalidSyscall() const override;
Dsyscall_parameters_restrictions.cc113 using sandbox::bpf_dsl::Allow;
114 using sandbox::bpf_dsl::Arg;
115 using sandbox::bpf_dsl::BoolExpr;
116 using sandbox::bpf_dsl::Error;
117 using sandbox::bpf_dsl::If;
118 using sandbox::bpf_dsl::ResultExpr;
Dbaseline_policy.cc31 using sandbox::bpf_dsl::Allow;
32 using sandbox::bpf_dsl::Arg;
33 using sandbox::bpf_dsl::Error;
34 using sandbox::bpf_dsl::If;
35 using sandbox::bpf_dsl::ResultExpr;
/external/libchrome/sandbox/linux/seccomp-bpf/
Dbpf_tests_unittest.cc26 using sandbox::bpf_dsl::Allow;
27 using sandbox::bpf_dsl::Error;
28 using sandbox::bpf_dsl::ResultExpr;
45 class EmptyClassTakingPolicy : public bpf_dsl::Policy {
86 class EnosysPtracePolicy : public bpf_dsl::Policy {
117 std::unique_ptr<bpf_dsl::Policy> GetSandboxBPFPolicy() override { in GetSandboxBPFPolicy()
118 return std::unique_ptr<bpf_dsl::Policy>(new EnosysPtracePolicy()); in GetSandboxBPFPolicy()
Dsandbox_bpf.cc117 bpf_dsl::ResultExpr SandboxPanic(const char* error) { in SandboxPanic()
118 return bpf_dsl::Trap(SandboxPanicTrap, error); in SandboxPanic()
123 SandboxBPF::SandboxBPF(bpf_dsl::Policy* policy) in SandboxBPF()
208 return bpf_dsl::PolicyCompiler::IsRequiredForUnsafeTrap(sysno); in IsRequiredForUnsafeTrap()
223 bpf_dsl::PolicyCompiler compiler(policy_.get(), Trap::Registry()); in AssembleFilter()
Dsandbox_bpf.h19 namespace bpf_dsl {
36 explicit SandboxBPF(bpf_dsl::Policy* policy);
108 std::unique_ptr<bpf_dsl::Policy> policy_;
Dsyscall_unittest.cc29 using sandbox::bpf_dsl::Allow;
30 using sandbox::bpf_dsl::ResultExpr;
31 using sandbox::bpf_dsl::Trap;
111 class CopyAllArgsOnUnamePolicy : public bpf_dsl::Policy {
Dbpf_tester_compatibility_delegate.h32 std::unique_ptr<bpf_dsl::Policy> GetSandboxBPFPolicy() override { in GetSandboxBPFPolicy()
37 return std::unique_ptr<bpf_dsl::Policy>(new Policy(&aux_)); in GetSandboxBPFPolicy()
Dtrap.h28 class SANDBOX_EXPORT Trap : public bpf_dsl::TrapRegistry {
36 static bpf_dsl::TrapRegistry* Registry();
Dbpf_tests.h109 std::unique_ptr<bpf_dsl::Policy> GetSandboxBPFPolicy() override { in GetSandboxBPFPolicy()
110 return std::unique_ptr<bpf_dsl::Policy>(new PolicyClass()); in GetSandboxBPFPolicy()
DDEPS2 "+sandbox/linux/bpf_dsl",
/external/libchrome/sandbox/linux/bpf_dsl/
Dbpf_dsl_forward.h13 namespace bpf_dsl {
40 shared_ptr<const sandbox::bpf_dsl::internal::BoolExprImpl>;
42 shared_ptr<const sandbox::bpf_dsl::internal::ResultExprImpl>;
Dbpf_dsl.h77 namespace bpf_dsl {
259 using bpf_dsl::Not;
260 using bpf_dsl::AllOf;
261 using bpf_dsl::AnyOf;
Dpolicy_compiler.h20 namespace bpf_dsl {
28 using PanicFunc = bpf_dsl::ResultExpr (*)(const char* error);
Dpolicy.cc12 namespace bpf_dsl { namespace
Derrorcode.h12 namespace bpf_dsl {
/external/libchrome/
DSConstruct299 linux/bpf_dsl/bpf_dsl.cc
300 linux/bpf_dsl/codegen.cc
301 linux/bpf_dsl/dump_bpf.cc
302 linux/bpf_dsl/policy.cc
303 linux/bpf_dsl/policy_compiler.cc
304 linux/bpf_dsl/syscall_set.cc
305 linux/bpf_dsl/verifier.cc

12