mirror of https://github.com/mkerrisk/man-pages
seccomp.2: in EXAMPLE, clearly note that x32 syscalls are >= X32_SYSCALL_BIT
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
050f349421
commit
a3dcaaa2ba
|
@ -983,7 +983,9 @@ install_filter(int syscall_nr, int t_arch, int f_errno)
|
|||
{
|
||||
unsigned int upper_nr_limit = 0xffffffff;
|
||||
|
||||
/* Assume that AUDIT_ARCH_X86_64 means the normal x86-64 ABI */
|
||||
/* Assume that AUDIT_ARCH_X86_64 means the normal x86-64 ABI
|
||||
(in the x32 ABI, all system calls have bit 30 set in the
|
||||
'nr' field, meaning the numbers are >= X32_SYSCALL_BIT) */
|
||||
if (t_arch == AUDIT_ARCH_X86_64)
|
||||
upper_nr_limit = X32_SYSCALL_BIT - 1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue