Skip to contentSkip to conversation

How to have a 'bpf.sig_enforce' command line arg in kernel/bpf/syscall.c ?

DISCUSSION Arnaldo Carvalho de Melo 1 participant 1 message Dec 2, 2020

lore
Share & tools
lore
#0 lore raw

If I use:

module_param_named(bpf.sig_enforce, sig_enforce, bool_enable_only, 0644);

It explodes and if I do as before:

module_param(sig_enforce, sig_enforce, bool_enable_only, 0644);

Then it ends up as 'syscall.sig_enforce'.

The closest I got so far was:

commit aeacb019b61c4ea7689085574bd03d2c0810f119

Author: Masahiro Yamada <[email protected]>
Date:   Mon Mar 19 18:01:24 2018 +0900

kbuild: define KBUILD_MODNAME even if multiple modules share objects

Is there some way to set that modname var to 'bpf' in kernel/bpf/syscall.c?

- Arnaldo