linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: takahiro.akashi@linaro.org (AKASHI Takahiro)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3] audit: generic compat system call support
Date: Fri, 17 Jan 2014 17:03:14 +0900	[thread overview]
Message-ID: <1389945795-4255-1-git-send-email-takahiro.akashi@linaro.org> (raw)
In-Reply-To: <1384854235-6567-1-git-send-email-takahiro.akashi@linaro.org>

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

       reply	other threads:[~2014-01-17  8:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1384854235-6567-1-git-send-email-takahiro.akashi@linaro.org>
2014-01-17  8:03 ` AKASHI Takahiro [this message]
2014-01-17  8:03   ` [PATCH v3] audit: Add generic compat syscall support AKASHI Takahiro
2014-01-23 14:51     ` Catalin Marinas
2014-01-27  5:58       ` AKASHI Takahiro
2014-01-27 12:15         ` Catalin Marinas
2014-01-29  5:58           ` AKASHI Takahiro
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     ` [PATCH v4 1/1] audit: Add generic compat syscall support AKASHI Takahiro
2014-03-15  5:47     ` [PATCH_v5] audit: generic compat system call support AKASHI Takahiro
2014-03-15  5:48       ` [PATCH_v5] audit: Add generic compat syscall support AKASHI Takahiro
2014-03-16 19:13         ` Richard Guy Briggs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1389945795-4255-1-git-send-email-takahiro.akashi@linaro.org \
    --to=takahiro.akashi@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).