Entitlements not working on Rootless
I was using this template and added a button that did posix_spawn, after that I compiled the Theos project. But then, when I try to click on the button it didn't work, I had an output text bar and it was just empty, it didn't change. I tried it on a Rootful device, it worked, but when I try to do it on a Rootless device, it didn't work.
Hey, I would be glad to help you but please remember this is designed to be a bare bones template so will need adapting for the majority of use cases.
Firstly, what entitlements did you grant? Secondly, did you take note of the error posix_spawn returned? Code samples are also helpful in diagnosing this.
Oh wait sorry, I found a fix for the issue, i didn’t have time to close this issue but thanks.
Nevermind, I need help on running posix_spawn/NSTask on rootless. So I have a function that runs shell and has a isRoot argument which I turned on when running the function. I tried running it on rootful and it worked but on rootless it kinda doesn't. It can run a bash command but when I run something that requires root, it just says Permission Denied, even if the isRoot argument is turned on. It's probably something to do either the function, the entitlements or I have to install a library (e.g. from Procursus, Chariz, etc.) to make it work? You may refer to this reddit post https://www.reddit.com/r/jailbreakdevelopers/comments/1is8y20/running_posix_spawnnstask_on_rootless_with_root/ thanks.