Re: High UID support for Linux

Stefan Monnier (monnier+lists/linux/kernel/news/
30 Nov 1998 20:11:51 -0500

>>>>> "Riley" == Riley Williams <> writes:
> OK, you do it - I'll send you the binary of a program there's no
> source to, you tell me the offsets to every getpwent call therein,
> making sure they are genuine pwent calls and not just data bytes that
> happen to look the same...

In practice it's quite doable in most cases. There are some binary-to-binary
translation tools around. But it seems way overkill.

> Incidentally, remember that not all programs will load registers in
> the same order, and that the arguments pushed on the stack are not
> necessarily done consecutively...

And since the problem is to replace getpwent with getenv(HOME), you have to
recognize that the output of getpwent is only used to extract the home
directory and then patch it up correctly. So much trouble, so little gain.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at