-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uses process credential on main thread #805
Conversation
Now we instantly fail on syscall 147 :( |
The good news about this is it is a correct path for the games. |
And what happens after you implement it? Or rather, after you fake it and just return the len right away? |
"Scepthread: Fatal error 'Can't set session id to 2 (errno = 1)'" is what it's trying to write for me btw |
Sorry, I myself didn't realize that I had sys_write stubbed. I merged main into my WIP branch. By the way, we should be thinking about sys_mmap_dmem, that seems to be the main obstacle that's ahead of us. Mikusp said he already has some ideas. |
I'll let you guys handle that. What I'm currently focus on is moving the application to run inside a VM. |
Where do we even begin? 👀 |
Wait, you said @mikusp already have some ideas. |
He has some ideas for dmem, but not for the privilege issue, that's what I was talking about. |
yup |
I guess I didn't actually say that 😅 Yeah, I get it right after. And from the description, it seems that it's the sys_setid. However, that means that is_system has to be true, doesn't it? 🤔 |
It should not. I'm confused why it raise int44. It seems like the PS4 expect the process to be a system process somehow. |
This should be a correct one. I don't think the PS4 will allow the application main thread to use SceSysCore credential because it is a privileged one. We can find the correct answer without guessing in the function that do thread switching but the problem is I don't know where it is.