]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
src/privsep-linux.c: add support for sh (#25)
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 5 Feb 2021 08:05:54 +0000 (09:05 +0100)
committerRoy Marples <roy@marples.name>
Fri, 5 Feb 2021 08:08:35 +0000 (08:08 +0000)
commit166491c2953546a677073694036f43a65fc25063
tree1effb623eb9081150019098f4f7e7924b00e4dc7
parent0025a1268a117ae6fc5809d926609a4dea3b61fd
src/privsep-linux.c: add support for sh (#25)

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_{SH,SHEL,SH64,SHEL64} are defined at
least since kernel 3.7 and
https://github.com/torvalds/linux/commit/607ca46e97a1b6594b29647d98a32d545c24bdff

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