0011-src-privsep-linux.c-add-support-for-m68k.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From f7721a6728bfd786604474df051f463a12dd0335 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Fri, 5 Mar 2021 12:22:13 +0100
  4. Subject: [PATCH] src/privsep-linux.c: add support for m68k
  5. Fix the following build failure:
  6. privsep-linux.c:206:4: error: #error "Platform does not support seccomp filter yet"
  7. # error "Platform does not support seccomp filter yet"
  8. ^~~~~
  9. In file included from privsep-linux.c:36:
  10. privsep-linux.c:213:38: error: 'SECCOMP_AUDIT_ARCH' undeclared here (not in a function); did you mean 'SECCOMP_ALLOW_ARG'?
  11. BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, SECCOMP_AUDIT_ARCH, 1, 0),
  12. ^~~~~~~~~~~~~~~~~~
  13. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  14. [Upstream status: https://github.com/rsmarples/dhcpcd/pull/29]
  15. ---
  16. src/privsep-linux.c | 2 ++
  17. 1 file changed, 2 insertions(+)
  18. diff --git a/src/privsep-linux.c b/src/privsep-linux.c
  19. index 21d41a9a..7dc92083 100644
  20. --- a/src/privsep-linux.c
  21. +++ b/src/privsep-linux.c
  22. @@ -188,6 +188,8 @@ ps_root_sendnetlink(struct dhcpcd_ctx *ctx, int protocol, struct msghdr *msg)
  23. # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_IA64
  24. #elif defined(__microblaze__)
  25. # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_MICROBLAZE
  26. +#elif defined(__m68k__)
  27. +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_M68K
  28. #elif defined(__mips__)
  29. # if defined(__MIPSEL__)
  30. # if defined(__LP64__)
  31. --
  32. 2.30.0