diff --git a/adb/daemon/main.cpp b/adb/daemon/main.cpp index feea7a3a8..218c1d0bb 100644 --- a/adb/daemon/main.cpp +++ b/adb/daemon/main.cpp @@ -54,11 +54,7 @@ static void drop_capabilities_bounding_set_if_needed() { } int err = prctl(PR_CAPBSET_DROP, i, 0, 0, 0); - - // Some kernels don't have file capabilities compiled in, and - // prctl(PR_CAPBSET_DROP) returns EINVAL. Don't automatically - // die when we see such misconfigured kernels. - if ((err < 0) && (errno != EINVAL)) { + if (err < 0) { PLOG(FATAL) << "Could not drop capabilities"; } }