projects
/
cydia.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cc6631
)
We should also be changing the gid, not just uid.
author
Jay Freeman (saurik)
<saurik@saurik.com>
Mon, 27 Oct 2014 00:20:28 +0000
(17:20 -0700)
committer
Jay Freeman (saurik)
<saurik@saurik.com>
Mon, 27 Oct 2014 00:20:28 +0000
(17:20 -0700)
MobileCydia.mm
patch
|
blob
|
blame
|
history
diff --git
a/MobileCydia.mm
b/MobileCydia.mm
index a2d65ccdea1e3265fe8f427b1fcb3bee526cbd99..a6d5e89299f6dc4e6ded63468e5e3353fc5a1403 100644
(file)
--- 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);
}