From: Jay Freeman (saurik) Date: Mon, 27 Oct 2014 00:20:28 +0000 (-0700) Subject: We should also be changing the gid, not just uid. X-Git-Tag: v1.1.14~32 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/3720d3d33be98b467736c5f2c2eb43b8afbc2e8c?ds=sidebyside We should also be changing the gid, not just uid. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index a2d65ccd..a6d5e892 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -247,11 +247,13 @@ struct Root { root_ = true; _trace(); _assert(setreuid(real ? 0 : 501, 0) != -1); + _assert(setregid(real ? 0 : 501, 0) != -1); } ~Root() { root_ = false; _trace(); + _assert(setregid(501, 501) != -1); _assert(setreuid(501, 501) != -1); }