From 3720d3d33be98b467736c5f2c2eb43b8afbc2e8c Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 26 Oct 2014 17:20:28 -0700 Subject: We should also be changing the gid, not just uid. --- MobileCydia.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MobileCydia.mm b/MobileCydia.mm index a2d65cc..a6d5e89 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); } -- cgit v1.2.3