Revert "zygote: don't drop CAP_SYS_PTRACE from the bounding set." am: 0a2d61505a

am: c75e4153cf

Change-Id: Id936d8fde31c69ed04df81486f441244339a2065
This commit is contained in:
Josh Gao
2017-02-06 18:51:21 +00:00
committed by android-build-merger

View File

@@ -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) {