summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-10-26 17:20:28 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2014-10-26 17:20:28 -0700
commit3720d3d33be98b467736c5f2c2eb43b8afbc2e8c (patch)
tree81db8de1b7a27d1d156c885b230da52325d23566
parent4cc6631991a9a0fbcabe025ca18dab0ead890fff (diff)
We should also be changing the gid, not just uid.
-rw-r--r--MobileCydia.mm2
1 files changed, 2 insertions, 0 deletions
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);
}