diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 599510a3355e..ba158f61aab4 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -66,6 +66,7 @@ | |||
66 | #include <linux/kexec.h> | 66 | #include <linux/kexec.h> |
67 | #include <linux/bpf.h> | 67 | #include <linux/bpf.h> |
68 | #include <linux/mount.h> | 68 | #include <linux/mount.h> |
69 | #include <linux/userfaultfd_k.h> | ||
69 | 70 | ||
70 | #include "../lib/kstrtox.h" | 71 | #include "../lib/kstrtox.h" |
71 | 72 | ||
@@ -1720,6 +1721,17 @@ static struct ctl_table vm_table[] = { | |||
1720 | .extra2 = (void *)&mmap_rnd_compat_bits_max, | 1721 | .extra2 = (void *)&mmap_rnd_compat_bits_max, |
1721 | }, | 1722 | }, |
1722 | #endif | 1723 | #endif |
1724 | #ifdef CONFIG_USERFAULTFD | ||
1725 | { | ||
1726 | .procname = "unprivileged_userfaultfd", | ||
1727 | .data = &sysctl_unprivileged_userfaultfd, | ||
1728 | .maxlen = sizeof(sysctl_unprivileged_userfaultfd), | ||
1729 | .mode = 0644, | ||
1730 | .proc_handler = proc_dointvec_minmax, | ||
1731 | .extra1 = &zero, | ||
1732 | .extra2 = &one, | ||
1733 | }, | ||
1734 | #endif | ||
1723 | { } | 1735 | { } |
1724 | }; | 1736 | }; |
1725 | 1737 | ||