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

From: Arnaldo Carvalho de Melo
Date: Wed Dec 02 2020 - 09:13:25 EST


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 <yamada.masahiro@xxxxxxxxxxxxx>
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