Skip to content

Commit

Permalink
samples: seccomp: turn CONFIG_SAMPLE_SECCOMP into a bool option
Browse files Browse the repository at this point in the history
The prompt of CONFIG_SAMPLE_SECCOMP claims this is "loadable module
only", which is invalid.

samples/seccomp/ only contains host programs, so having it tristate
is pointless.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
  • Loading branch information
Masahiro Yamada committed May 3, 2019
1 parent 1eaca4b commit 7206c12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions samples/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ config SAMPLE_CONNECTOR
See also Documentation/connector/connector.txt

config SAMPLE_SECCOMP
tristate "Build seccomp sample code -- loadable modules only"
depends on SECCOMP_FILTER && m
bool "Build seccomp sample code"
depends on SECCOMP_FILTER
help
Build samples of seccomp filters using various methods of
BPF filter construction.
Expand Down
2 changes: 1 addition & 1 deletion samples/seccomp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ HOSTLDLIBS_bpf-fancy += $(MFLAG)
HOSTLDLIBS_dropper += $(MFLAG)
HOSTLDLIBS_user-trap += $(MFLAG)
endif
always := $(hostprogs-m)
always := $(hostprogs-y)
endif

0 comments on commit 7206c12

Please sign in to comment.