[LTP] NS_* ioctl commands fail in 32bit compat mode (-m32)

Cyril Hrubis
2019-05-13T09:00:51Z

Hi!
> > All the tests fail with something similar to:
> > ioctl_ns01.c:45: FAIL: unexpected ioctl error: ENOTTY
> >
> > when compiled with the -m32 flag on at least SUSE kernel 4.20 and
> > 4.12.
> >
> > Do you know if this feature is expected to work in 32bit compat mode?
> > Maybe the size of the arguments should be different when using 32bit mode?
>
> FYI, it seems the size of the argument and value are the same on both 32bit
> and 64bit mode in user space.

Most likely these calls were not implemented for 32bit compat mode
because nobody needs them there. I guess that the best solution would be
just report TCONF on ENOTTY.

Also it would be nice to have this sorted before the upcomming release.