OpenCloudOS-Kernel/samples/seccomp
Olof Johansson f6041c1d8a samples/seccomp: Add standalone config option
Add a separate Kconfig option for SAMPLES_SECCOMP.

Main reason for this is that, just like other samples, it's forced to
be a module.

Without this, since the sample is a target only controlled by
CONFIG_SECCOMP_FILTER, the samples will be built before include files are
put in place properly. For example, from an arm64 allmodconfig built with
"make -sk -j 32" (without specific target), the following happens:

  samples/seccomp/bpf-fancy.c:13:27: fatal error: linux/seccomp.h: No such file or directory
  samples/seccomp/bpf-helper.h:20:50: fatal error: linux/seccomp.h: No such file or directory
  samples/seccomp/dropper.c:20:27: fatal error: linux/seccomp.h: No such file or directory
  samples/seccomp/bpf-direct.c:21:27: fatal error: linux/seccomp.h: No such file or directory

So, just stick to the same format as other samples.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Kees Cook <keescook@chromium.org>
2016-07-07 10:58:03 -07:00
..
.gitignore samples: seccomp: add .gitignore for untracked executables 2012-06-29 00:54:17 +10:00
Makefile samples/seccomp: Add standalone config option 2016-07-07 10:58:03 -07:00
bpf-direct.c samples/seccomp: fix dependencies on arch macros 2012-04-19 13:44:06 +10:00
bpf-fancy.c samples/seccomp: improve label helper 2015-02-17 14:34:55 -08:00
bpf-helper.c samples/seccomp: improve label helper 2015-02-17 14:34:55 -08:00
bpf-helper.h samples/seccomp: fix endianness bug in LO_ARG define 2012-08-03 14:27:40 +10:00
dropper.c