Skip to content
Commit 07bd18d0 authored by Will Drewry's avatar Will Drewry Committed by James Morris
Browse files

asm/syscall.h: add syscall_get_arch



Adds a stub for a function that will return the AUDIT_ARCH_* value
appropriate to the supplied task based on the system call convention.

For audit's use, the value can generally be hard-coded at the
audit-site.  However, for other functionality not inlined into syscall
entry/exit, this makes that information available.  seccomp_filter is
the first planned consumer and, as such, the comment indicates a tie to
CONFIG_HAVE_ARCH_SECCOMP_FILTER.

Suggested-by: default avatarRoland McGrath <mcgrathr@chromium.org>
Signed-off-by: default avatarWill Drewry <wad@chromium.org>
Acked-by: default avatarSerge Hallyn <serge.hallyn@canonical.com>
Acked-by: default avatarEric Paris <eparis@redhat.com>

v18: comment and change reword and rebase.
v14: rebase/nochanges
v13: rebase on to 88ebdda6


v12: rebase on to linux-next
v11: fixed improper return type
v10: introduced
Signed-off-by: default avatarJames Morris <james.l.morris@oracle.com>
parent 932ecebb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment