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

Unified Diff: sandbox/linux/seccomp-bpf-helpers/baseline_policy.h

Issue 101773003: Linux sandbox: cleanup sandbox-bpf naming. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename class Sandbox to class SandboxBPF Created 7 years 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
Index: sandbox/linux/seccomp-bpf-helpers/baseline_policy.h
diff --git a/sandbox/linux/seccomp-bpf-helpers/baseline_policy.h b/sandbox/linux/seccomp-bpf-helpers/baseline_policy.h
index 88dd9dc40b41133f84ef6e42383f6c21211d9d72..9633fa59d43713427ece6f785a614cc7145dcd18 100644
--- a/sandbox/linux/seccomp-bpf-helpers/baseline_policy.h
+++ b/sandbox/linux/seccomp-bpf-helpers/baseline_policy.h
@@ -8,17 +8,11 @@
#include "sandbox/linux/seccomp-bpf/errorcode.h"
#include "sandbox/linux/seccomp-bpf/sandbox_bpf_policy.h"
-namespace playground2 {
-class Sandbox;
-class SandboxBpfPolicy;
-}
-
-using playground2::ErrorCode;
-using playground2::Sandbox;
-using playground2::SandboxBpfPolicy;
-
namespace sandbox {
+class SandboxBPF;
+class SandboxBpfPolicy;
+
// This is a helper to build seccomp-bpf policies, i.e. policies for a sandbox
// that reduces the Linux kernel's attack surface. Given its nature, it doesn't
// have a clear semantics and is mostly "implementation-defined".
@@ -36,11 +30,11 @@ class BaselinePolicy : public SandboxBpfPolicy {
explicit BaselinePolicy(int fs_denied_errno);
virtual ~BaselinePolicy();
- virtual ErrorCode EvaluateSyscall(Sandbox* sandbox_compiler,
+ virtual ErrorCode EvaluateSyscall(SandboxBPF* sandbox_compiler,
int system_call_number) const OVERRIDE;
// TODO(jln): remove once NaCl uses the new policy format. Do not use in new
// code. This is the same as EvaluateSyscall. |aux| must be NULL.
- static ErrorCode BaselinePolicyDeprecated(Sandbox* sandbox,
+ static ErrorCode BaselinePolicyDeprecated(SandboxBPF* sandbox,
int sysno,
void* aux);

Powered by Google App Engine
This is Rietveld 408576698