summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Paul Lawrence <paullawrence@google.com> 2017-02-08 20:17:35 +0000
committer android-build-merger <android-build-merger@google.com> 2017-02-08 20:17:35 +0000
commite0c1cde9c2cbfd5ea1c4828d7dce0cf7f9b3421b (patch)
treef8f086dee1a0ec87e143db2e3ae5cad4e2aaa6aa
parent8d2d9d758fd8752b0a5864124f3d92c370f7fcb3 (diff)
parente9799155c9596e7ec634709c5854aa53a8355f78 (diff)
Merge "Expand seccomp whitelist" am: fd77a331eb am: 1201ce98dd
am: e9799155c9 Change-Id: If9652ab58b37d2011251345bf5e85afdb3bac4d6
-rw-r--r--core/jni/android_os_seccomp.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/jni/android_os_seccomp.cpp b/core/jni/android_os_seccomp.cpp
index 02c0c625d469..3f021ae1378f 100644
--- a/core/jni/android_os_seccomp.cpp
+++ b/core/jni/android_os_seccomp.cpp
@@ -216,6 +216,9 @@ bool set_seccomp_filter() {
AllowSyscall(f, 8); // __NR_creat
AllowSyscall(f, 10); // __NR_unlink
+ // b/35059702
+ AllowSyscall(f, 196); // __NR_lstat64
+
Trap(f);
return install_filter(f);