Re: ABIs, syscall tables, and the AUDIT_ARCH_* defines

2013-10-30 Thread Paul Moore
On Tuesday, October 29, 2013 05:29:41 PM Eric Paris wrote: On Tue, 2013-10-29 at 17:28 -0400, Paul Moore wrote: Take x86_64 and x32 as an example (think of x32 as a 32-bit version of x86_64). Both x32 and x86_64 use the AUDIT_ARCH_X86_64 value and general calling convention, but they have

ABIs, syscall tables, and the AUDIT_ARCH_* defines

2013-10-30 Thread Paul Moore
Hello all, I've been dealing with the AUDIT_ARCH_* defines, different ABIs and syscall tables a fair amount lately as part of libseccomp[1] and a little birdie thought it might be a good idea to post something to the Linux audit list. So here we go. I'll try to be brief. First off, if you

Re: ABIs, syscall tables, and the AUDIT_ARCH_* defines

2013-10-29 Thread Eric Paris
On Tue, 2013-10-29 at 17:28 -0400, Paul Moore wrote: Take x86_64 and x32 as an example (think of x32 as a 32-bit version of x86_64). Both x32 and x86_64 use the AUDIT_ARCH_X86_64 value and general calling convention, but they have a different syscall table. I guess a good question is is