[PATCH v3] powerpc/audit: Convert powerpc to AUDIT_ARCH_COMPAT_GENERIC
Paul Moore
paul at paul-moore.com
Wed Mar 11 06:19:19 AEDT 2026
On Tue, Mar 10, 2026 at 11:08 AM Christophe Leroy (CS GROUP)
<chleroy at kernel.org> wrote:
>
> From: Christophe Leroy <christophe.leroy at csgroup.eu>
>
> Commit e65e1fc2d24b ("[PATCH] syscall class hookup for all normal
> targets") added generic support for AUDIT but that didn't include
> support for bi-arch like powerpc.
>
> Commit 4b58841149dc ("audit: Add generic compat syscall support")
> added generic support for bi-arch.
>
> Convert powerpc to that bi-arch generic audit support.
>
> With this change generated text is similar.
>
> Thomas has confirmed that the previously failing filter_exclude/test
> is now successful both without and with this patch, see [1]
>
> [1] https://lore.kernel.org/all/20260306115350-ef265661-6d6b-4043-9bd0-8e6b437d0d67@linutronix.de/
>
> Link: https://github.com/linuxppc/issues/issues/412
> Signed-off-by: Christophe Leroy <christophe.leroy at csgroup.eu>
> Reviewed-by: Cédric Le Goater <clg at kaod.org>
> ---
> Venkat, a test result with https://github.com/linux-audit/audit-testsuite would be appreciated.
Yes, I'd like to see confirmation that the audit test suite runs clean
on ppc systems with this patch applied, and unfortunately without a
ppc system I have no way to test this myself.
> v3: Rebased on v7.0-rc1
>
> v2: https://lore.kernel.org/all/a4b3951d1191d4183d92a07a6097566bde60d00a.1629812058.git.christophe.leroy@csgroup.eu/
> ---
> arch/powerpc/Kconfig | 5 +-
> arch/powerpc/include/asm/unistd32.h | 7 +++
> arch/powerpc/kernel/Makefile | 3 -
> arch/powerpc/kernel/audit.c | 87 -----------------------------
> arch/powerpc/kernel/compat_audit.c | 49 ----------------
> 5 files changed, 8 insertions(+), 143 deletions(-)
> create mode 100644 arch/powerpc/include/asm/unistd32.h
> delete mode 100644 arch/powerpc/kernel/audit.c
> delete mode 100644 arch/powerpc/kernel/compat_audit.c
--
paul-moore.com
More information about the Linuxppc-dev
mailing list