Zygote: remove CAP_NET_RAW exception
As of system/core commit fe8135739c5a9195e74786205c077964ba4f9c44
and be341cc348257a07c68bcbfdc526835d49283329, ping no longer
needs special privileges. We don't need to special case it.
Change-Id: I533888dda964688eab6b562b60a99b5623174426
diff --git a/runtime/native/dalvik_system_Zygote.cc b/runtime/native/dalvik_system_Zygote.cc
index 29c0bc0..4d009db 100644
--- a/runtime/native/dalvik_system_Zygote.cc
+++ b/runtime/native/dalvik_system_Zygote.cc
@@ -217,10 +217,6 @@
static void DropCapabilitiesBoundingSet() {
for (int i = 0; prctl(PR_CAPBSET_READ, i, 0, 0, 0) >= 0; i++) {
- if (i == CAP_NET_RAW) {
- // Don't break /system/bin/ping
- continue;
- }
int rc = prctl(PR_CAPBSET_DROP, i, 0, 0, 0);
if (rc == -1) {
if (errno == EINVAL) {