From: AKASHI Takahiro <takahiro.akashi@linaro.org>
To: Will Deacon <will.deacon@arm.com>
Cc: "linux-audit@redhat.com" <linux-audit@redhat.com>,
"arndb@arndb.de" <arndb@arndb.de>,
"patches@linaro.org" <patches@linaro.org>
Subject: Re: [PATCH v2 3/3] audit(userspace): Add compat system call support for AArch64
Date: Mon, 20 Jan 2014 14:05:10 +0900 [thread overview]
Message-ID: <52DCAE86.3090900@linaro.org> (raw)
In-Reply-To: <20140117150522.GJ16003@mudshark.cambridge.arm.com>
[+ Cc: Eric]
On 01/18/2014 12:05 AM, Will Deacon wrote:
> On Fri, Jan 17, 2014 at 08:15:29AM +0000, AKASHI Takahiro wrote:
>> For 32-bit task auditing (-F arch=b32), internally-used machine type will
>> be overwritten to MACH_ARM[EB] in order to use a correct system call
>> lookup table.
>>
>> Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
>> ---
>> lib/libaudit.c | 6 ++++++
>> 1 file changed, 6 insertions(+)
>>
>> diff --git a/lib/libaudit.c b/lib/libaudit.c
>> index 77b3f9b..df2af2a 100644
>> --- a/lib/libaudit.c
>> +++ b/lib/libaudit.c
>> @@ -1306,6 +1306,12 @@ int audit_rule_fieldpair_data(struct audit_rule_data **rulep, const char *pair,
>> else if (bits == ~__AUDIT_ARCH_64BIT &&
>> machine == MACH_S390X)
>> machine = MACH_S390;
>> + else if (bits == ~__AUDIT_ARCH_64BIT &&
>> + machine == MACH_AARCH64)
>> + machine = MACH_ARM;
>> + else if (bits == ~__AUDIT_ARCH_64BIT &&
>> + machine == MACH_AARCH64EB)
>> + machine = MACH_ARMEB;
>
> Why do you care about MACH_ARMEB? The syscall APIs are identical for either
> endianness.
Yeah, I remember that you have already mentioned it before:
On 11/08/2013 11:34 PM, Will Deacon wrote:
> On Wed, Nov 06, 2013 at 10:25:42AM +0000, AKASHI Takahiro wrote:
>> * Userspace audit package
>> There are some missing syscall definitions in lib/aarch64_table.h.
>> There is no support for AUDIT_ARCH_ARM (I mean LE. armeb is BE).
>
> I did post something over a year ago... did it not get picked up?
>
> http://permalink.gmane.org/gmane.linux.ports.arm.kernel/165266
But since then, I've never got any follow-ups from audit folks (especially Eric)
and so just kept the code unchanged and made my changes compatible with it.
Once we all agree, I will be easily able to remove such a conditional.
-Takahiro AKASHI
> Will
>
next prev parent reply other threads:[~2014-01-20 5:05 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-19 7:28 [RFC PATH 0/2] audit(userspace): Add/Improve arm/aarch64 support AKASHI Takahiro
2013-11-19 7:28 ` [RFC PATCH 1/2] audit(userspace): Add missing syscalls for AArch64 AKASHI Takahiro
2013-11-19 7:29 ` [RFC PATCH 2/2] audit(userspace): Add arm LE/aarch64 BE support AKASHI Takahiro
2014-01-17 8:15 ` [PATCH v2 0/3] audit(userspace): Add/Improve arm/aarch64 support AKASHI Takahiro
2014-01-17 8:15 ` [PATCH v2 1/3] audit(userspace): Add missing syscalls for AArch64 AKASHI Takahiro
2014-01-17 8:15 ` [PATCH v2 2/3] audit(userspace): Add arm LE/aarch64 BE support AKASHI Takahiro
2014-01-17 8:15 ` [PATCH v2 3/3] audit(userspace): Add compat system call support for AArch64 AKASHI Takahiro
2014-01-17 15:05 ` Will Deacon
2014-01-20 5:05 ` AKASHI Takahiro [this message]
2014-02-03 6:57 ` [PATCH v3 0/4] audit(userspace): Improve arm/aarch64 support AKASHI Takahiro
2014-02-03 6:57 ` AKASHI Takahiro
2014-02-03 6:57 ` [PATCH v3 1/4] audit(userspace): Substitute ARMEB with ARM AKASHI Takahiro
2014-02-03 6:57 ` [PATCH v3 2/4] audit(userspace): Substitute armeb with arm AKASHI Takahiro
2014-02-03 6:58 ` [PATCH v3 3/4] audit(userspace): Add missing syscalls for AArch64 AKASHI Takahiro
2014-02-03 6:58 ` [PATCH v3 4/4] audit(userspace): Add compat system call support " AKASHI Takahiro
2014-03-20 0:38 ` [PATCH v3 0/4] audit(userspace): Improve arm/aarch64 support Steve Grubb
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=52DCAE86.3090900@linaro.org \
--to=takahiro.akashi@linaro.org \
--cc=arndb@arndb.de \
--cc=linux-audit@redhat.com \
--cc=patches@linaro.org \
--cc=will.deacon@arm.com \
/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 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.