Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6941)

Unified Diff: components/nacl/loader/nonsfi/nonsfi_sandbox.h

Issue 299683004: Rewrite all BPF policies to use DSL API Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Overhaul of DSL and implementation Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/nacl/loader/nonsfi/nonsfi_sandbox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/loader/nonsfi/nonsfi_sandbox.h
diff --git a/components/nacl/loader/nonsfi/nonsfi_sandbox.h b/components/nacl/loader/nonsfi/nonsfi_sandbox.h
index 6ff0d4112d946ec8755c050506aefb2fe6ce8816..48cc7ad503ae4c7d68b63786b90d5e7105f2aeae 100644
--- a/components/nacl/loader/nonsfi/nonsfi_sandbox.h
+++ b/components/nacl/loader/nonsfi/nonsfi_sandbox.h
@@ -6,7 +6,7 @@
#define COMPONENTS_NACL_LOADER_NONSFI_NONSFI_SANDBOX_H_
#include "base/basictypes.h"
-#include "sandbox/linux/seccomp-bpf/sandbox_bpf_policy.h"
+#include "sandbox/linux/seccomp-bpf-helpers/bpf_dsl.h"
namespace nacl {
namespace nonsfi {
@@ -14,13 +14,14 @@ namespace nonsfi {
// The seccomp sandbox policy for NaCl non-SFI mode. Note that this
// policy must be as strong as possible, as non-SFI mode heavily
// depends on seccomp sandbox.
-class NaClNonSfiBPFSandboxPolicy : public sandbox::SandboxBPFPolicy {
+class NaClNonSfiBPFSandboxPolicy
+ : public sandbox::bpf_dsl::SandboxBPFPolicyDSL {
public:
explicit NaClNonSfiBPFSandboxPolicy() {}
virtual ~NaClNonSfiBPFSandboxPolicy() {}
- virtual sandbox::ErrorCode EvaluateSyscall(sandbox::SandboxBPF* sb,
- int sysno) const OVERRIDE;
+ virtual sandbox::bpf_dsl::ResultExpr EvaluateSyscall(
+ int sysno) const OVERRIDE;
private:
DISALLOW_COPY_AND_ASSIGN(NaClNonSfiBPFSandboxPolicy);
« no previous file with comments | « no previous file | components/nacl/loader/nonsfi/nonsfi_sandbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698