diff options
Diffstat (limited to 'kernel/cgroup/cgroup.c')
-rw-r--r-- | kernel/cgroup/cgroup.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index 57eb866ae78d..269512b94a94 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c | |||
@@ -5761,4 +5761,14 @@ int cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog, | |||
5761 | mutex_unlock(&cgroup_mutex); | 5761 | mutex_unlock(&cgroup_mutex); |
5762 | return ret; | 5762 | return ret; |
5763 | } | 5763 | } |
5764 | int cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr, | ||
5765 | union bpf_attr __user *uattr) | ||
5766 | { | ||
5767 | int ret; | ||
5768 | |||
5769 | mutex_lock(&cgroup_mutex); | ||
5770 | ret = __cgroup_bpf_query(cgrp, attr, uattr); | ||
5771 | mutex_unlock(&cgroup_mutex); | ||
5772 | return ret; | ||
5773 | } | ||
5764 | #endif /* CONFIG_CGROUP_BPF */ | 5774 | #endif /* CONFIG_CGROUP_BPF */ |