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

Side by Side Diff: sandbox/linux/seccomp-bpf-helpers/baseline_policy_android.h

Issue 180783019: [Android] Define a baseline seccomp-bpf sandbox policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_HELPERS_BASELINE_POLICY_ANDROID_H_
6 #define SANDBOX_LINUX_SECCOMP_BPF_HELPERS_BASELINE_POLICY_ANDROID_H_
7
8 #include "sandbox/linux/seccomp-bpf-helpers/baseline_policy.h"
9 #include "sandbox/linux/seccomp-bpf/errorcode.h"
10
11 namespace sandbox {
12
13 class SandboxBPF;
14
15 // This class builds on top of the generic Linux baseline policy to reduce
16 // Linux kernel attack surface. It augments the list of allowed syscalls to
17 // allow ones required by the Android runtime.
18 class BaselinePolicyAndroid : public BaselinePolicy {
19 public:
20 BaselinePolicyAndroid();
21 virtual ~BaselinePolicyAndroid();
22
23 // SandboxBPFPolicy:
24 virtual ErrorCode EvaluateSyscall(SandboxBPF* sandbox_compiler,
25 int system_call_number) const OVERRIDE;
26
27 private:
28 DISALLOW_COPY_AND_ASSIGN(BaselinePolicyAndroid);
29 };
30
31 } // namespace sandbox
32
33 #endif // SANDBOX_LINUX_SECCOMP_BPF_HELPERS_BASELINE_POLICY_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698