aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bpf-cgroup.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/bpf-cgroup.h')
-rw-r--r--include/linux/bpf-cgroup.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/bpf-cgroup.h b/include/linux/bpf-cgroup.h
index 1e97271f9a10..cb3c6b3b89c8 100644
--- a/include/linux/bpf-cgroup.h
+++ b/include/linux/bpf-cgroup.h
@@ -114,7 +114,8 @@ int __cgroup_bpf_check_dev_permission(short dev_type, u32 major, u32 minor,
114int __cgroup_bpf_run_filter_sysctl(struct ctl_table_header *head, 114int __cgroup_bpf_run_filter_sysctl(struct ctl_table_header *head,
115 struct ctl_table *table, int write, 115 struct ctl_table *table, int write,
116 void __user *buf, size_t *pcount, 116 void __user *buf, size_t *pcount,
117 void **new_buf, enum bpf_attach_type type); 117 loff_t *ppos, void **new_buf,
118 enum bpf_attach_type type);
118 119
119static inline enum bpf_cgroup_storage_type cgroup_storage_type( 120static inline enum bpf_cgroup_storage_type cgroup_storage_type(
120 struct bpf_map *map) 121 struct bpf_map *map)
@@ -262,12 +263,12 @@ int bpf_percpu_cgroup_storage_update(struct bpf_map *map, void *key,
262}) 263})
263 264
264 265
265#define BPF_CGROUP_RUN_PROG_SYSCTL(head, table, write, buf, count, nbuf) \ 266#define BPF_CGROUP_RUN_PROG_SYSCTL(head, table, write, buf, count, pos, nbuf) \
266({ \ 267({ \
267 int __ret = 0; \ 268 int __ret = 0; \
268 if (cgroup_bpf_enabled) \ 269 if (cgroup_bpf_enabled) \
269 __ret = __cgroup_bpf_run_filter_sysctl(head, table, write, \ 270 __ret = __cgroup_bpf_run_filter_sysctl(head, table, write, \
270 buf, count, nbuf, \ 271 buf, count, pos, nbuf, \
271 BPF_CGROUP_SYSCTL); \ 272 BPF_CGROUP_SYSCTL); \
272 __ret; \ 273 __ret; \
273}) 274})
@@ -340,7 +341,7 @@ static inline int bpf_percpu_cgroup_storage_update(struct bpf_map *map,
340#define BPF_CGROUP_RUN_PROG_UDP6_SENDMSG_LOCK(sk, uaddr, t_ctx) ({ 0; }) 341#define BPF_CGROUP_RUN_PROG_UDP6_SENDMSG_LOCK(sk, uaddr, t_ctx) ({ 0; })
341#define BPF_CGROUP_RUN_PROG_SOCK_OPS(sock_ops) ({ 0; }) 342#define BPF_CGROUP_RUN_PROG_SOCK_OPS(sock_ops) ({ 0; })
342#define BPF_CGROUP_RUN_PROG_DEVICE_CGROUP(type,major,minor,access) ({ 0; }) 343#define BPF_CGROUP_RUN_PROG_DEVICE_CGROUP(type,major,minor,access) ({ 0; })
343#define BPF_CGROUP_RUN_PROG_SYSCTL(head,table,write,buf,count,nbuf) ({ 0; }) 344#define BPF_CGROUP_RUN_PROG_SYSCTL(head,table,write,buf,count,pos,nbuf) ({ 0; })
344 345
345#define for_each_cgroup_storage_type(stype) for (; false; ) 346#define for_each_cgroup_storage_type(stype) for (; false; )
346 347