diff options
| author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2021-03-08 11:05:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-08 10:05:16 +0000 |
| commit | 391e962e58eedaec26449f8617bbbf1e993deeef (patch) | |
| tree | f8983606415c0ffe38c69101ee3275eac2fd905a | |
| parent | 8aa4950ac38e6e2b3b2f537891071bcd80e5ef10 (diff) | |
| download | dhcpcd-391e962e58eedaec26449f8617bbbf1e993deeef.tar.xz | |
src/privsep-linux.c: add support for m68k (#29)
Fix the following build failure:
privsep-linux.c:206:4: error: #error "Platform does not support seccomp filter yet"
# error "Platform does not support seccomp filter yet"
^~~~~
In file included from privsep-linux.c:36:
privsep-linux.c:213:38: error: 'SECCOMP_AUDIT_ARCH' undeclared here (not in a function); did you mean 'SECCOMP_ALLOW_ARG'?
BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, SECCOMP_AUDIT_ARCH, 1, 0),
^~~~~~~~~~~~~~~~~~
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
| -rw-r--r-- | src/privsep-linux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/privsep-linux.c b/src/privsep-linux.c index 21d41a9a..7dc92083 100644 --- a/src/privsep-linux.c +++ b/src/privsep-linux.c @@ -188,6 +188,8 @@ ps_root_sendnetlink(struct dhcpcd_ctx *ctx, int protocol, struct msghdr *msg) # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_IA64 #elif defined(__microblaze__) # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_MICROBLAZE +#elif defined(__m68k__) +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_M68K #elif defined(__mips__) # if defined(__MIPSEL__) # if defined(__LP64__) |
