Re: [PATCH seccomp 3/8] powerpc: Enable seccomp architecture tracking

2020-11-05 Thread Michael Ellerman
YiFei Zhu writes: > On Wed, Nov 4, 2020 at 4:22 AM Michael Ellerman wrote: >> > +#ifdef __LITTLE_ENDIAN__ >> >> As Kees mentioned this should (must?!) match the configured endian. >> >> But I think it would still be better to use the CONFIG symbol, which is >> CONFIG_CPU_LITTLE_ENDIAN. > > My att

Re: [PATCH seccomp 3/8] powerpc: Enable seccomp architecture tracking

2020-11-04 Thread YiFei Zhu
On Wed, Nov 4, 2020 at 4:22 AM Michael Ellerman wrote: > > +#ifdef __LITTLE_ENDIAN__ > > As Kees mentioned this should (must?!) match the configured endian. > > But I think it would still be better to use the CONFIG symbol, which is > CONFIG_CPU_LITTLE_ENDIAN. My attempt here is to be consistent

Re: [PATCH seccomp 3/8] powerpc: Enable seccomp architecture tracking

2020-11-04 Thread Michael Ellerman
YiFei Zhu writes: > From: YiFei Zhu > > To enable seccomp constant action bitmaps, we need to have a static > mapping to the audit architecture and system call table size. Add these > for powerpc. > > Signed-off-by: YiFei Zhu > --- > arch/powerpc/include/asm/seccomp.h | 21 +

[PATCH seccomp 3/8] powerpc: Enable seccomp architecture tracking

2020-11-03 Thread YiFei Zhu
From: YiFei Zhu To enable seccomp constant action bitmaps, we need to have a static mapping to the audit architecture and system call table size. Add these for powerpc. Signed-off-by: YiFei Zhu --- arch/powerpc/include/asm/seccomp.h | 21 + 1 file changed, 21 insertions(+)