[Toybox] Pending todoness.

enh enh at google.com
Fri Oct 1 15:30:55 PDT 2021


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 <rob at landley.net> wrote:

> On 9/30/21 8:48 PM, enh wrote:
> > > On Tue, Sep 28, 2021, 18:04 Rob Landley <rob at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20211001/c50205d4/attachment-0001.htm>


More information about the Toybox mailing list