Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a39b08e9 authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

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

Revert "zygote: don't drop CAP_SYS_PTRACE from the bounding set." am: 0a2d6150 am: c75e4153 am: dc3f66c3
am: 83a2e949

Change-Id: I72de1024758be2575ecde3654df7d34337d94a64
parents cec9d8ce 83a2e949
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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) {