bpf: add generic constant blinding for use in jits
[cascardo/linux.git] / net / core / sysctl_net_core.c
index a6beb7b..0df2aa6 100644 (file)
@@ -294,6 +294,15 @@ static struct ctl_table net_core_table[] = {
                .mode           = 0644,
                .proc_handler   = proc_dointvec
        },
+# ifdef CONFIG_HAVE_EBPF_JIT
+       {
+               .procname       = "bpf_jit_harden",
+               .data           = &bpf_jit_harden,
+               .maxlen         = sizeof(int),
+               .mode           = 0600,
+               .proc_handler   = proc_dointvec,
+       },
+# endif
 #endif
        {
                .procname       = "netdev_tstamp_prequeue",