ah, yeah, i missed it because it's not in the syscall itself --- it's in
macros that the syscall references:

#ifdef COMPAT_UTS_MACHINE
#define override_architecture(name) \
>-(personality(current->personality) == PER_LINUX32 && \
>- copy_to_user(name->machine, COMPAT_UTS_MACHINE, \
>->-      sizeof(COMPAT_UTS_MACHINE)))
#else
#define override_architecture(name)>0
#endif

On Fri, Oct 1, 2021 at 10:24 AM Rob Landley <r...@landley.net> wrote:

> On 9/30/21 8:48 PM, enh wrote:
> > > On Tue, Sep 28, 2021, 18:04 Rob Landley <r...@landley.net
> > > That said, according to the man page literally all linux32 does is tell
> > > uname to lie. It has no actual effect on the rest of the ABI. (There
> are
> > > setarch options that do, but I didn't implement setarch...)
> >
> > Not uname, afaik: it tells the arm64 kernel to lie when you look at
> > /proc/cpuinfo
> > though... https://elixir.bootlin.com/linux/latest/A/ident/PER_LINUX32
> > <https://elixir.bootlin.com/linux/latest/A/ident/PER_LINUX32>
>
> It changes what's returned by the uname() system call. (The uname command
> is 90%
> just passing along data from uname(2).)
>
> Rob
>
_______________________________________________
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to