]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
src/privsep-linux.c: add support for or1k (#27)
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 7 Feb 2021 08:43:14 +0000 (09:43 +0100)
committerRoy Marples <roy@marples.name>
Fri, 9 Jul 2021 14:50:35 +0000 (15:50 +0100)
commit2e98d6f970315ed7cb40c2d26be889662845130e
tree67044c4d14b365486d9ba9f97ebebe76dfde958d
parentedf50fdc33429184ee8e1cd087e19d4ce864b1f8
src/privsep-linux.c: add support for or1k (#27)

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),
                                      ^~~~~~~~~~~~~~~~~~

It should be noted that AUDIT_ARCH_OPENRISC is defined since kernel 3.7:
https://github.com/torvalds/linux/commit/e2bebb4ae6d9ac4ffc524db67f7ecb205a173f77

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
src/privsep-linux.c