#include "base/logging.h"
#include "sandbox/linux/seccomp-bpf-helpers/baseline_policy.h"
+using sandbox::bpf_dsl::ResultExpr;
+
namespace content {
namespace {
: baseline_policy_(new sandbox::BaselinePolicy(kFSDeniedErrno)) {}
SandboxBPFBasePolicy::~SandboxBPFBasePolicy() {}
-ErrorCode SandboxBPFBasePolicy::EvaluateSyscall(SandboxBPF* sandbox_compiler,
- int system_call_number) const {
+ResultExpr SandboxBPFBasePolicy::EvaluateSyscall(int system_call_number) const {
+ DCHECK(baseline_policy_);
+ return baseline_policy_->EvaluateSyscall(system_call_number);
+}
+
+ResultExpr SandboxBPFBasePolicy::InvalidSyscall() const {
DCHECK(baseline_policy_);
- return baseline_policy_->EvaluateSyscall(sandbox_compiler,
- system_call_number);
+ return baseline_policy_->InvalidSyscall();
}
bool SandboxBPFBasePolicy::PreSandboxHook() {