summaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index e69201d8094e..96c856b04081 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -64,6 +64,7 @@
64#include <linux/binfmts.h> 64#include <linux/binfmts.h>
65#include <linux/sched/sysctl.h> 65#include <linux/sched/sysctl.h>
66#include <linux/kexec.h> 66#include <linux/kexec.h>
67#include <linux/bpf.h>
67 68
68#include <asm/uaccess.h> 69#include <asm/uaccess.h>
69#include <asm/processor.h> 70#include <asm/processor.h>
@@ -1139,6 +1140,18 @@ static struct ctl_table kern_table[] = {
1139 .proc_handler = timer_migration_handler, 1140 .proc_handler = timer_migration_handler,
1140 }, 1141 },
1141#endif 1142#endif
1143#ifdef CONFIG_BPF_SYSCALL
1144 {
1145 .procname = "unprivileged_bpf_disabled",
1146 .data = &sysctl_unprivileged_bpf_disabled,
1147 .maxlen = sizeof(sysctl_unprivileged_bpf_disabled),
1148 .mode = 0644,
1149 /* only handle a transition from default "0" to "1" */
1150 .proc_handler = proc_dointvec_minmax,
1151 .extra1 = &one,
1152 .extra2 = &one,
1153 },
1154#endif
1142 { } 1155 { }
1143}; 1156};
1144 1157