OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9be24a3
)
Revert "zygote: don't drop CAP_SYS_PTRACE from the bounding set."
author
Josh Gao
<jmgao@google.com>
Wed, 1 Feb 2017 21:19:56 +0000
(13:19 -0800)
committer
Josh Gao
<jmgao@google.com>
Thu, 2 Feb 2017 01:56:43 +0000
(17:56 -0800)
This reverts commit
59972218f8c0d397fc50400a2b8b9be92ceeaf93
.
Bug: http://b/
34853272
Test: debuggerd -b `pidof system_server`
Change-Id: I440932210b6e84647c2848bab2e082a58338fb1e
core/jni/com_android_internal_os_Zygote.cpp
patch
|
blob
|
history
diff --git
a/core/jni/com_android_internal_os_Zygote.cpp
b/core/jni/com_android_internal_os_Zygote.cpp
index
516ab38
..
a32dbad
100644
(file)
--- a/
core/jni/com_android_internal_os_Zygote.cpp
+++ b/
core/jni/com_android_internal_os_Zygote.cpp
@@
-247,11
+247,6
@@
static void EnableKeepCapabilities(JNIEnv* env) {
static void DropCapabilitiesBoundingSet(JNIEnv* env) {
for (int i = 0; prctl(PR_CAPBSET_READ, i, 0, 0, 0) >= 0; i++) {
- // Keep CAP_SYS_PTRACE in our bounding set so crash_dump can gain it.
- if (i == CAP_SYS_PTRACE) {
- continue;
- }
-
int rc = prctl(PR_CAPBSET_DROP, i, 0, 0, 0);
if (rc == -1) {
if (errno == EINVAL) {