Skip to content
Snippets Groups Projects
Commit 92212e5c authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Patch deletion due to upstream fix"

parents f49702e9 c2dc33bd
No related branches found
No related tags found
No related merge requests found
From a5dc50e9229ea93a692f146a112fa5c717d8f077 Mon Sep 17 00:00:00 2001
From: Michael Vines <mvines@codeaurora.org>
Date: Wed, 18 Mar 2015 15:02:19 -0700
Subject: [PATCH 3/4] Bug 1144514 - Whitelist pread64
Change-Id: I445e6988981ead54f34d4c44322954b49662aafe
---
security/sandbox/linux/SandboxFilter.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/security/sandbox/linux/SandboxFilter.cpp b/security/sandbox/linux/SandboxFilter.cpp
index db4fa75..39d24e3 100644
--- a/security/sandbox/linux/SandboxFilter.cpp
+++ b/security/sandbox/linux/SandboxFilter.cpp
@@ -145,6 +145,9 @@ SandboxFilterImplContent::Build() {
#if SYSCALL_EXISTS(ftruncate64)
Allow(SYSCALL(ftruncate64));
#endif
+#if SYSCALL_EXISTS(pread64)
+ Allow(SYSCALL(pread64));
+#endif
/* ioctl() is for GL. Remove when GL proxy is implemented.
* Additionally ioctl() might be a place where we want to have
@@ -286,7 +289,6 @@ SandboxFilterImplContent::Build() {
Allow(SYSCALL(mkdir));
Allow(SYSCALL(getcwd));
Allow(SYSCALL(readahead));
- Allow(SYSCALL(pread64));
Allow(SYSCALL(statfs));
#if SYSCALL_EXISTS(ugetrlimit)
Allow(SYSCALL(ugetrlimit));
--
1.8.2.1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment