News for hackers. Stuff that matters.
Re:Games for IBM AS/400 by skissane on Saturday November 27, 2021 @06:11AM (#29359284)
> The machine code of an executable is not accessible by users (even privileged ones) so it's not possible to patch a binary with your own instructions.

I’m not so convinced this is true. If you have access to SST, you can use the Display/Alter/Dump tool to make arbitrary changes to memory. A common use of this is to put your program object into system state so it can use system domain APIs or MI instructions even when the system is at security level 40 or above. Are you sure there is no way using SST to either alter the memory containing POWER machine code, or give a program you wrote authority to do that?

Re:Games for IBM AS/400 by ch_123 on Saturday November 27, 2021 @10:38AM (#29360937)
That is probably true. Perhaps I should have said "If you are able to patch the machine code in a program object, you probably have full access to the system anyway".
Re:Games for IBM AS/400 by skissane on Saturday November 27, 2021 @11:38AM (#29361376)
Definitely you can use SST to modify the translated POWER machine code. Here is an article giving an example of why you might want to do it, and how to do it: https://www.mcpressonline.com/programming/rpg/change-the-las...

Of course unprivileged users can’t do this. But if you have privilege to access SST (which means you basically have the equivalent of root in Unix) you can do absolutely anything if you know how.