All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] audit: generic compat system call support
@ 2013-11-19  7:33 AKASHI Takahiro
  2013-11-19  7:33 ` [RFC PATCH] audit: Add generic compat syscall support AKASHI Takahiro
  0 siblings, 1 reply; 32+ messages in thread
From: AKASHI Takahiro @ 2013-11-19  7:33 UTC (permalink / raw)
  To: linux-audit; +Cc: dsaxena, will.deacon, patches

Arm64 supports 32-bit mode(AArch32) and 64-bit mode(AArch64).
To enable audit support, we want to avoid duplicating lib/audit.c
as other arch's do, and instead to use lib/audit.c and extend/re-work it 
in order to support compat system calls as well.

Changes are nothing fancy, just copying lib/audit.c and adding hooks
for compat system calls as done in other arch's.

Once this patch is accepted, my aarch64 patch will be rebased on top
of this.
(If you want, I can submit it immediately because it is already working.)

AKASHI Takahiro (1):
  audit: Add generic compat syscall support

 include/linux/audit.h |    3 +++
 lib/Makefile          |    3 +++
 lib/audit.c           |   10 ++++++++
 lib/compat_audit.c    |   64 +++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 80 insertions(+)
 create mode 100644 lib/compat_audit.c

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 32+ messages in thread
* [PATCH v3] audit: generic compat system call support
@ 2014-01-17  8:11 AKASHI Takahiro
  2014-01-17  8:11 ` [PATCH v3] audit: Add generic compat syscall support AKASHI Takahiro
  0 siblings, 1 reply; 32+ messages in thread
From: AKASHI Takahiro @ 2014-01-17  8:11 UTC (permalink / raw)
  To: linux-kernel; +Cc: AKASHI Takahiro

Arm64 supports 32-bit mode(AArch32) and 64-bit mode(AArch64).
To enable audit on arm64, we want to use lib/audit.c and re-work it
to support compat system calls as well without copying it under
arch sub-directory.

So this patch is mandatory for my "system call audit support for arm64"
patch. Please review it as well for better understandings.

This code was tested on armv8 fast model with 64-bit and 32-bit userland
by using modified audit-test-code.

Changes v1 -> v2:
* Specify AUDIT_CLASS_XYZ_32 instead of AUDIT_CLASS_XYZ when registering
  compat syscalls (bug fix)


AKASHI Takahiro (1):
  audit: Add generic compat syscall support

 include/linux/audit.h |    9 +++++++++
 lib/Makefile          |    3 +++
 lib/audit.c           |   17 +++++++++++++++++
 lib/compat_audit.c    |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 80 insertions(+)
 create mode 100644 lib/compat_audit.c

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2014-03-16 19:13 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-19  7:33 [RFC PATCH] audit: generic compat system call support AKASHI Takahiro
2013-11-19  7:33 ` [RFC PATCH] audit: Add generic compat syscall support AKASHI Takahiro
2013-11-19  9:43   ` [RFC PATCH v2 1/1] " AKASHI Takahiro
2013-11-25 19:01     ` Will Deacon
2013-11-27  1:34       ` AKASHI Takahiro
2014-01-10 18:36         ` Richard Guy Briggs
2014-01-17  8:03     ` [PATCH v3] audit: generic compat system call support AKASHI Takahiro
2014-01-17  8:03       ` AKASHI Takahiro
2014-01-17  8:03       ` [PATCH v3] audit: Add generic compat syscall support AKASHI Takahiro
2014-01-17  8:03         ` AKASHI Takahiro
2014-01-23 14:51         ` Catalin Marinas
2014-01-23 14:51           ` Catalin Marinas
2014-01-27  5:58           ` AKASHI Takahiro
2014-01-27  5:58             ` AKASHI Takahiro
2014-01-27 12:15             ` Catalin Marinas
2014-01-27 12:15               ` Catalin Marinas
2014-01-29  5:58               ` AKASHI Takahiro
2014-01-29  5:58                 ` AKASHI Takahiro
2014-01-30 18:07                 ` Catalin Marinas
2014-01-30 18:07                   ` Catalin Marinas
2014-02-03  6:55       ` [PATCH v4 0/1] audit: generic compat system call support AKASHI Takahiro
2014-02-03  6:55         ` AKASHI Takahiro
2014-02-03  6:55         ` [PATCH v4 1/1] audit: Add generic compat syscall support AKASHI Takahiro
2014-02-03  6:55           ` AKASHI Takahiro
2014-03-15  5:47         ` [PATCH_v5] audit: generic compat system call support AKASHI Takahiro
2014-03-15  5:47           ` AKASHI Takahiro
2014-03-15  5:48           ` [PATCH_v5] audit: Add generic compat syscall support AKASHI Takahiro
2014-03-15  5:48             ` AKASHI Takahiro
2014-03-16 19:13             ` Richard Guy Briggs
2014-03-16 19:13               ` Richard Guy Briggs
2013-12-13  8:37   ` [RFC PATCH] " AKASHI Takahiro
  -- strict thread matches above, loose matches on Subject: below --
2014-01-17  8:11 [PATCH v3] audit: generic compat system call support AKASHI Takahiro
2014-01-17  8:11 ` [PATCH v3] audit: Add generic compat syscall support AKASHI Takahiro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.