diff options
Diffstat (limited to 'fs/proc/proc_sysctl.c')
-rw-r--r-- | fs/proc/proc_sysctl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index d65390727541..e01b02150340 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/namei.h> | 13 | #include <linux/namei.h> |
14 | #include <linux/mm.h> | 14 | #include <linux/mm.h> |
15 | #include <linux/module.h> | 15 | #include <linux/module.h> |
16 | #include <linux/bpf-cgroup.h> | ||
16 | #include "internal.h" | 17 | #include "internal.h" |
17 | 18 | ||
18 | static const struct dentry_operations proc_sys_dentry_operations; | 19 | static const struct dentry_operations proc_sys_dentry_operations; |
@@ -588,6 +589,10 @@ static ssize_t proc_sys_call_handler(struct file *filp, void __user *buf, | |||
588 | if (!table->proc_handler) | 589 | if (!table->proc_handler) |
589 | goto out; | 590 | goto out; |
590 | 591 | ||
592 | error = BPF_CGROUP_RUN_PROG_SYSCTL(head, table, write); | ||
593 | if (error) | ||
594 | goto out; | ||
595 | |||
591 | /* careful: calling conventions are nasty here */ | 596 | /* careful: calling conventions are nasty here */ |
592 | res = count; | 597 | res = count; |
593 | error = table->proc_handler(table, write, buf, &res, ppos); | 598 | error = table->proc_handler(table, write, buf, &res, ppos); |