Skip to contentSkip to conversation

m68k: Enable seccomp architecture tracking

PATCH In review Geert Uytterhoeven 2 participants 3 messages Dec 20, 2020 m68k architecture

lore
Share & tools
lore

Geert Uytterhoeven

author maintainer
#0 lore raw

PATCH 1/1 m68k: Enable seccomp architecture tracking

To enable seccomp constant action bitmaps, we need to have a static mapping to the audit architecture and system call table size.

---
Needed for CONFIG_SECCOMP_CACHE_DEBUG.
Note that upstream doesn't have m68k seccomp support yet.

 arch/m68k/include/asm/Kbuild    |  1 -
 arch/m68k/include/asm/seccomp.h | 11 +++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)
 create mode 100644 arch/m68k/include/asm/seccomp.h
arch/m68k/include/asm/Kbuild +0 -1
index d9f0f283707ff352..1bff55aa2d54e2ce 100644
@@ -4,5 +4,4 @@ generic-y += extable.h
 generic-y += kvm_para.h
 generic-y += local64.h
 generic-y += mcs_spinlock.h
-generic-y += seccomp.h
 generic-y += spinlock.h
arch/m68k/include/asm/seccomp.h new file +11 -0
new file mode 100644
index 0000000000000000..feefe511dd1f370d
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+#ifndef _ASM_M68K_SECCOMP_H
+#define _ASM_M68K_SECCOMP_H
+
+#include <asm-generic/seccomp.h>
+
+#define SECCOMP_ARCH_NATIVE		AUDIT_ARCH_M68K
+#define SECCOMP_ARCH_NATIVE_NR		NR_syscalls
+#define SECCOMP_ARCH_NATIVE_NAME	"m68k"
+
+#endif /* _ASM_M68K_SECCOMP_H */
Signature · 1 line
2.25.1
#1 lore raw

Hi Geert!

Quoted 7 lines · Geert Uytterhoeven

To enable seccomp constant action bitmaps, we need to have a static mapping to the audit architecture and system call table size.

---
Needed for CONFIG_SECCOMP_CACHE_DEBUG.
Note that upstream doesn't have m68k seccomp support yet.

Have we added SECCOMP support for m68k to the kernel yet?

It's actually something I was hoping to do over the holidays ;-).

Adrian

Signature · 4 lines
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
author maintainer
#2 lore raw

Hi Adrian,

Quoted 10 lines · John Paul Adrian Glaubitz
Quoted 7 lines · Geert Uytterhoeven

To enable seccomp constant action bitmaps, we need to have a static mapping to the audit architecture and system call table size.

---
Needed for CONFIG_SECCOMP_CACHE_DEBUG.
Note that upstream doesn't have m68k seccomp support yet.

Have we added SECCOMP support for m68k to the kernel yet?

No, but I have applied locally the patches floating on the list...

Quoted 1 line

It's actually something I was hoping to do over the holidays ;-).

Happy to hear that!

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds