[PATCH] um: make personality(PER_LINUX32) work on x86_64

Johannes Berg johannes at sipsolutions.net
Mon Aug 19 05:23:12 PDT 2024


On Tue, 2024-08-13 at 16:47 -0700, Maciej Żenczykowski wrote:
> Without this patch:
>   #!/usr/bin/python3
>   import ctypes
>   import os
>   personality = ctypes.CDLL(None).personality
>   personality.restype = ctypes.c_int
>   personality.argtypes = [ctypes.c_ulong]
>   PER_LINUX32=8
>   personality(PER_LINUX32)
>   print(os.uname().machine)
> returns:
>   x86_64
> instead of the desired:
>   i686
> 

But ... why should it work? UML has no 32-bit compat support anyway.

johannes



More information about the linux-um mailing list