blob: cb3c6b3b89c802941edea7f732e2009b00a4b356 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Daniel Mack30070982016-11-23 16:52:26 +01002#ifndef _BPF_CGROUP_H
3#define _BPF_CGROUP_H
4
Roman Gushchin8bad74f2018-09-28 14:45:36 +00005#include <linux/bpf.h>
Roman Gushchinf292b872018-07-06 14:34:29 -07006#include <linux/errno.h>
Daniel Mack30070982016-11-23 16:52:26 +01007#include <linux/jump_label.h>
Roman Gushchinaa0ad5b2018-08-02 14:27:19 -07008#include <linux/percpu.h>
Roman Gushchinde9cbba2018-08-02 14:27:18 -07009#include <linux/rbtree.h>
Daniel Mack30070982016-11-23 16:52:26 +010010#include <uapi/linux/bpf.h>
11
12struct sock;
Andrey Ignatov4fbac772018-03-30 15:08:02 -070013struct sockaddr;
Daniel Mack30070982016-11-23 16:52:26 +010014struct cgroup;
15struct sk_buff;
Roman Gushchinde9cbba2018-08-02 14:27:18 -070016struct bpf_map;
17struct bpf_prog;
Lawrence Brakmo40304b22017-06-30 20:02:40 -070018struct bpf_sock_ops_kern;
Roman Gushchinde9cbba2018-08-02 14:27:18 -070019struct bpf_cgroup_storage;
Andrey Ignatov7b146ce2019-02-27 12:59:24 -080020struct ctl_table;
21struct ctl_table_header;
Daniel Mack30070982016-11-23 16:52:26 +010022
23#ifdef CONFIG_CGROUP_BPF
24
25extern struct static_key_false cgroup_bpf_enabled_key;
26#define cgroup_bpf_enabled static_branch_unlikely(&cgroup_bpf_enabled_key)
27
Roman Gushchinf294b372018-09-28 14:45:40 +000028DECLARE_PER_CPU(struct bpf_cgroup_storage*,
29 bpf_cgroup_storage[MAX_BPF_CGROUP_STORAGE_TYPE]);
Roman Gushchin8bad74f2018-09-28 14:45:36 +000030
31#define for_each_cgroup_storage_type(stype) \
32 for (stype = 0; stype < MAX_BPF_CGROUP_STORAGE_TYPE; stype++)
Roman Gushchinaa0ad5b2018-08-02 14:27:19 -070033
Roman Gushchinde9cbba2018-08-02 14:27:18 -070034struct bpf_cgroup_storage_map;
35
36struct bpf_storage_buffer {
37 struct rcu_head rcu;
38 char data[0];
39};
40
41struct bpf_cgroup_storage {
Roman Gushchinb741f162018-09-28 14:45:43 +000042 union {
43 struct bpf_storage_buffer *buf;
44 void __percpu *percpu_buf;
45 };
Roman Gushchinde9cbba2018-08-02 14:27:18 -070046 struct bpf_cgroup_storage_map *map;
47 struct bpf_cgroup_storage_key key;
48 struct list_head list;
49 struct rb_node node;
50 struct rcu_head rcu;
51};
52
Alexei Starovoitov324bda9e62017-10-02 22:50:21 -070053struct bpf_prog_list {
54 struct list_head node;
55 struct bpf_prog *prog;
Roman Gushchin8bad74f2018-09-28 14:45:36 +000056 struct bpf_cgroup_storage *storage[MAX_BPF_CGROUP_STORAGE_TYPE];
Alexei Starovoitov324bda9e62017-10-02 22:50:21 -070057};
58
59struct bpf_prog_array;
60
Daniel Mack30070982016-11-23 16:52:26 +010061struct cgroup_bpf {
Alexei Starovoitov324bda9e62017-10-02 22:50:21 -070062 /* array of effective progs in this cgroup */
63 struct bpf_prog_array __rcu *effective[MAX_BPF_ATTACH_TYPE];
64
65 /* attached progs to this cgroup and attach flags
66 * when flags == 0 or BPF_F_ALLOW_OVERRIDE the progs list will
67 * have either zero or one element
68 * when BPF_F_ALLOW_MULTI the list can have up to BPF_CGROUP_MAX_PROGS
Daniel Mack30070982016-11-23 16:52:26 +010069 */
Alexei Starovoitov324bda9e62017-10-02 22:50:21 -070070 struct list_head progs[MAX_BPF_ATTACH_TYPE];
71 u32 flags[MAX_BPF_ATTACH_TYPE];
72
73 /* temp storage for effective prog array used by prog_attach/detach */
74 struct bpf_prog_array __rcu *inactive;
Daniel Mack30070982016-11-23 16:52:26 +010075};
76
77void cgroup_bpf_put(struct cgroup *cgrp);
Alexei Starovoitov324bda9e62017-10-02 22:50:21 -070078int cgroup_bpf_inherit(struct cgroup *cgrp);
Daniel Mack30070982016-11-23 16:52:26 +010079
Alexei Starovoitov324bda9e62017-10-02 22:50:21 -070080int __cgroup_bpf_attach(struct cgroup *cgrp, struct bpf_prog *prog,
81 enum bpf_attach_type type, u32 flags);
82int __cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog,
Valdis Kletnieks1832f4e2019-01-29 01:47:06 -050083 enum bpf_attach_type type);
Alexei Starovoitov468e2f62017-10-02 22:50:22 -070084int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr,
85 union bpf_attr __user *uattr);
Daniel Mack30070982016-11-23 16:52:26 +010086
Alexei Starovoitov324bda9e62017-10-02 22:50:21 -070087/* Wrapper for __cgroup_bpf_*() protected by cgroup_mutex */
88int cgroup_bpf_attach(struct cgroup *cgrp, struct bpf_prog *prog,
89 enum bpf_attach_type type, u32 flags);
90int cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog,
91 enum bpf_attach_type type, u32 flags);
Alexei Starovoitov468e2f62017-10-02 22:50:22 -070092int cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr,
93 union bpf_attr __user *uattr);
Daniel Mack30070982016-11-23 16:52:26 +010094
David Ahernb2cd1252016-12-01 08:48:03 -080095int __cgroup_bpf_run_filter_skb(struct sock *sk,
96 struct sk_buff *skb,
97 enum bpf_attach_type type);
Daniel Mack30070982016-11-23 16:52:26 +010098
David Ahern610236582016-12-01 08:48:04 -080099int __cgroup_bpf_run_filter_sk(struct sock *sk,
100 enum bpf_attach_type type);
101
Andrey Ignatov4fbac772018-03-30 15:08:02 -0700102int __cgroup_bpf_run_filter_sock_addr(struct sock *sk,
103 struct sockaddr *uaddr,
Andrey Ignatov1cedee12018-05-25 08:55:23 -0700104 enum bpf_attach_type type,
105 void *t_ctx);
Andrey Ignatov4fbac772018-03-30 15:08:02 -0700106
Lawrence Brakmo40304b22017-06-30 20:02:40 -0700107int __cgroup_bpf_run_filter_sock_ops(struct sock *sk,
108 struct bpf_sock_ops_kern *sock_ops,
109 enum bpf_attach_type type);
110
Roman Gushchinebc614f2017-11-05 08:15:32 -0500111int __cgroup_bpf_check_dev_permission(short dev_type, u32 major, u32 minor,
112 short access, enum bpf_attach_type type);
113
Andrey Ignatov7b146ce2019-02-27 12:59:24 -0800114int __cgroup_bpf_run_filter_sysctl(struct ctl_table_header *head,
115 struct ctl_table *table, int write,
Andrey Ignatov4e63acd2019-03-07 18:38:43 -0800116 void __user *buf, size_t *pcount,
Andrey Ignatove1550bf2019-03-07 18:50:52 -0800117 loff_t *ppos, void **new_buf,
118 enum bpf_attach_type type);
Andrey Ignatov7b146ce2019-02-27 12:59:24 -0800119
Roman Gushchin8bad74f2018-09-28 14:45:36 +0000120static inline enum bpf_cgroup_storage_type cgroup_storage_type(
121 struct bpf_map *map)
Roman Gushchinaa0ad5b2018-08-02 14:27:19 -0700122{
Roman Gushchinb741f162018-09-28 14:45:43 +0000123 if (map->map_type == BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE)
124 return BPF_CGROUP_STORAGE_PERCPU;
125
Roman Gushchin8bad74f2018-09-28 14:45:36 +0000126 return BPF_CGROUP_STORAGE_SHARED;
Roman Gushchinaa0ad5b2018-08-02 14:27:19 -0700127}
128
Roman Gushchin8bad74f2018-09-28 14:45:36 +0000129static inline void bpf_cgroup_storage_set(struct bpf_cgroup_storage
130 *storage[MAX_BPF_CGROUP_STORAGE_TYPE])
131{
132 enum bpf_cgroup_storage_type stype;
Roman Gushchin8bad74f2018-09-28 14:45:36 +0000133
Roman Gushchinf294b372018-09-28 14:45:40 +0000134 for_each_cgroup_storage_type(stype)
135 this_cpu_write(bpf_cgroup_storage[stype], storage[stype]);
Roman Gushchin8bad74f2018-09-28 14:45:36 +0000136}
137
138struct bpf_cgroup_storage *bpf_cgroup_storage_alloc(struct bpf_prog *prog,
139 enum bpf_cgroup_storage_type stype);
Roman Gushchinde9cbba2018-08-02 14:27:18 -0700140void bpf_cgroup_storage_free(struct bpf_cgroup_storage *storage);
141void bpf_cgroup_storage_link(struct bpf_cgroup_storage *storage,
142 struct cgroup *cgroup,
143 enum bpf_attach_type type);
144void bpf_cgroup_storage_unlink(struct bpf_cgroup_storage *storage);
145int bpf_cgroup_storage_assign(struct bpf_prog *prog, struct bpf_map *map);
146void bpf_cgroup_storage_release(struct bpf_prog *prog, struct bpf_map *map);
147
Roman Gushchinb741f162018-09-28 14:45:43 +0000148int bpf_percpu_cgroup_storage_copy(struct bpf_map *map, void *key, void *value);
149int bpf_percpu_cgroup_storage_update(struct bpf_map *map, void *key,
150 void *value, u64 flags);
151
David Ahernb2cd1252016-12-01 08:48:03 -0800152/* Wrappers for __cgroup_bpf_run_filter_skb() guarded by cgroup_bpf_enabled. */
153#define BPF_CGROUP_RUN_PROG_INET_INGRESS(sk, skb) \
154({ \
155 int __ret = 0; \
156 if (cgroup_bpf_enabled) \
157 __ret = __cgroup_bpf_run_filter_skb(sk, skb, \
158 BPF_CGROUP_INET_INGRESS); \
159 \
160 __ret; \
Daniel Mack30070982016-11-23 16:52:26 +0100161})
162
David Ahernb2cd1252016-12-01 08:48:03 -0800163#define BPF_CGROUP_RUN_PROG_INET_EGRESS(sk, skb) \
164({ \
165 int __ret = 0; \
166 if (cgroup_bpf_enabled && sk && sk == skb->sk) { \
167 typeof(sk) __sk = sk_to_full_sk(sk); \
168 if (sk_fullsock(__sk)) \
169 __ret = __cgroup_bpf_run_filter_skb(__sk, skb, \
170 BPF_CGROUP_INET_EGRESS); \
171 } \
172 __ret; \
Daniel Mack30070982016-11-23 16:52:26 +0100173})
174
Andrey Ignatovaac3fc32018-03-30 15:08:07 -0700175#define BPF_CGROUP_RUN_SK_PROG(sk, type) \
David Ahern610236582016-12-01 08:48:04 -0800176({ \
177 int __ret = 0; \
Yafang Shaoee078622018-02-23 14:58:41 +0800178 if (cgroup_bpf_enabled) { \
Andrey Ignatovaac3fc32018-03-30 15:08:07 -0700179 __ret = __cgroup_bpf_run_filter_sk(sk, type); \
David Ahern610236582016-12-01 08:48:04 -0800180 } \
181 __ret; \
182})
183
Andrey Ignatovaac3fc32018-03-30 15:08:07 -0700184#define BPF_CGROUP_RUN_PROG_INET_SOCK(sk) \
185 BPF_CGROUP_RUN_SK_PROG(sk, BPF_CGROUP_INET_SOCK_CREATE)
186
187#define BPF_CGROUP_RUN_PROG_INET4_POST_BIND(sk) \
188 BPF_CGROUP_RUN_SK_PROG(sk, BPF_CGROUP_INET4_POST_BIND)
189
190#define BPF_CGROUP_RUN_PROG_INET6_POST_BIND(sk) \
191 BPF_CGROUP_RUN_SK_PROG(sk, BPF_CGROUP_INET6_POST_BIND)
192
Andrey Ignatov4fbac772018-03-30 15:08:02 -0700193#define BPF_CGROUP_RUN_SA_PROG(sk, uaddr, type) \
194({ \
195 int __ret = 0; \
196 if (cgroup_bpf_enabled) \
Andrey Ignatov1cedee12018-05-25 08:55:23 -0700197 __ret = __cgroup_bpf_run_filter_sock_addr(sk, uaddr, type, \
198 NULL); \
Andrey Ignatov4fbac772018-03-30 15:08:02 -0700199 __ret; \
200})
201
Andrey Ignatov1cedee12018-05-25 08:55:23 -0700202#define BPF_CGROUP_RUN_SA_PROG_LOCK(sk, uaddr, type, t_ctx) \
Andrey Ignatovd74bad42018-03-30 15:08:05 -0700203({ \
204 int __ret = 0; \
205 if (cgroup_bpf_enabled) { \
206 lock_sock(sk); \
Andrey Ignatov1cedee12018-05-25 08:55:23 -0700207 __ret = __cgroup_bpf_run_filter_sock_addr(sk, uaddr, type, \
208 t_ctx); \
Andrey Ignatovd74bad42018-03-30 15:08:05 -0700209 release_sock(sk); \
210 } \
211 __ret; \
212})
213
Andrey Ignatov4fbac772018-03-30 15:08:02 -0700214#define BPF_CGROUP_RUN_PROG_INET4_BIND(sk, uaddr) \
215 BPF_CGROUP_RUN_SA_PROG(sk, uaddr, BPF_CGROUP_INET4_BIND)
216
217#define BPF_CGROUP_RUN_PROG_INET6_BIND(sk, uaddr) \
218 BPF_CGROUP_RUN_SA_PROG(sk, uaddr, BPF_CGROUP_INET6_BIND)
219
Andrey Ignatovd74bad42018-03-30 15:08:05 -0700220#define BPF_CGROUP_PRE_CONNECT_ENABLED(sk) (cgroup_bpf_enabled && \
221 sk->sk_prot->pre_connect)
222
223#define BPF_CGROUP_RUN_PROG_INET4_CONNECT(sk, uaddr) \
224 BPF_CGROUP_RUN_SA_PROG(sk, uaddr, BPF_CGROUP_INET4_CONNECT)
225
226#define BPF_CGROUP_RUN_PROG_INET6_CONNECT(sk, uaddr) \
227 BPF_CGROUP_RUN_SA_PROG(sk, uaddr, BPF_CGROUP_INET6_CONNECT)
228
229#define BPF_CGROUP_RUN_PROG_INET4_CONNECT_LOCK(sk, uaddr) \
Andrey Ignatov1cedee12018-05-25 08:55:23 -0700230 BPF_CGROUP_RUN_SA_PROG_LOCK(sk, uaddr, BPF_CGROUP_INET4_CONNECT, NULL)
Andrey Ignatovd74bad42018-03-30 15:08:05 -0700231
232#define BPF_CGROUP_RUN_PROG_INET6_CONNECT_LOCK(sk, uaddr) \
Andrey Ignatov1cedee12018-05-25 08:55:23 -0700233 BPF_CGROUP_RUN_SA_PROG_LOCK(sk, uaddr, BPF_CGROUP_INET6_CONNECT, NULL)
234
235#define BPF_CGROUP_RUN_PROG_UDP4_SENDMSG_LOCK(sk, uaddr, t_ctx) \
236 BPF_CGROUP_RUN_SA_PROG_LOCK(sk, uaddr, BPF_CGROUP_UDP4_SENDMSG, t_ctx)
237
238#define BPF_CGROUP_RUN_PROG_UDP6_SENDMSG_LOCK(sk, uaddr, t_ctx) \
239 BPF_CGROUP_RUN_SA_PROG_LOCK(sk, uaddr, BPF_CGROUP_UDP6_SENDMSG, t_ctx)
Andrey Ignatovd74bad42018-03-30 15:08:05 -0700240
Lawrence Brakmo40304b22017-06-30 20:02:40 -0700241#define BPF_CGROUP_RUN_PROG_SOCK_OPS(sock_ops) \
242({ \
243 int __ret = 0; \
244 if (cgroup_bpf_enabled && (sock_ops)->sk) { \
245 typeof(sk) __sk = sk_to_full_sk((sock_ops)->sk); \
WANG Congdf39a9f2017-07-17 11:42:55 -0700246 if (__sk && sk_fullsock(__sk)) \
Lawrence Brakmo40304b22017-06-30 20:02:40 -0700247 __ret = __cgroup_bpf_run_filter_sock_ops(__sk, \
248 sock_ops, \
249 BPF_CGROUP_SOCK_OPS); \
250 } \
251 __ret; \
252})
Roman Gushchinebc614f2017-11-05 08:15:32 -0500253
254#define BPF_CGROUP_RUN_PROG_DEVICE_CGROUP(type, major, minor, access) \
255({ \
256 int __ret = 0; \
257 if (cgroup_bpf_enabled) \
258 __ret = __cgroup_bpf_check_dev_permission(type, major, minor, \
259 access, \
260 BPF_CGROUP_DEVICE); \
261 \
262 __ret; \
263})
Andrey Ignatov7b146ce2019-02-27 12:59:24 -0800264
265
Andrey Ignatove1550bf2019-03-07 18:50:52 -0800266#define BPF_CGROUP_RUN_PROG_SYSCTL(head, table, write, buf, count, pos, nbuf) \
Andrey Ignatov7b146ce2019-02-27 12:59:24 -0800267({ \
268 int __ret = 0; \
269 if (cgroup_bpf_enabled) \
270 __ret = __cgroup_bpf_run_filter_sysctl(head, table, write, \
Andrey Ignatove1550bf2019-03-07 18:50:52 -0800271 buf, count, pos, nbuf, \
Andrey Ignatov7b146ce2019-02-27 12:59:24 -0800272 BPF_CGROUP_SYSCTL); \
273 __ret; \
274})
275
Sean Youngfdb5c452018-06-19 00:04:24 +0100276int cgroup_bpf_prog_attach(const union bpf_attr *attr,
277 enum bpf_prog_type ptype, struct bpf_prog *prog);
278int cgroup_bpf_prog_detach(const union bpf_attr *attr,
279 enum bpf_prog_type ptype);
280int cgroup_bpf_prog_query(const union bpf_attr *attr,
281 union bpf_attr __user *uattr);
Daniel Mack30070982016-11-23 16:52:26 +0100282#else
283
Sean Youngfdb5c452018-06-19 00:04:24 +0100284struct bpf_prog;
Daniel Mack30070982016-11-23 16:52:26 +0100285struct cgroup_bpf {};
286static inline void cgroup_bpf_put(struct cgroup *cgrp) {}
Alexei Starovoitov324bda9e62017-10-02 22:50:21 -0700287static inline int cgroup_bpf_inherit(struct cgroup *cgrp) { return 0; }
Daniel Mack30070982016-11-23 16:52:26 +0100288
Sean Youngfdb5c452018-06-19 00:04:24 +0100289static inline int cgroup_bpf_prog_attach(const union bpf_attr *attr,
290 enum bpf_prog_type ptype,
291 struct bpf_prog *prog)
292{
293 return -EINVAL;
294}
295
296static inline int cgroup_bpf_prog_detach(const union bpf_attr *attr,
297 enum bpf_prog_type ptype)
298{
299 return -EINVAL;
300}
301
302static inline int cgroup_bpf_prog_query(const union bpf_attr *attr,
303 union bpf_attr __user *uattr)
304{
305 return -EINVAL;
306}
307
Roman Gushchin8bad74f2018-09-28 14:45:36 +0000308static inline void bpf_cgroup_storage_set(
309 struct bpf_cgroup_storage *storage[MAX_BPF_CGROUP_STORAGE_TYPE]) {}
Roman Gushchinde9cbba2018-08-02 14:27:18 -0700310static inline int bpf_cgroup_storage_assign(struct bpf_prog *prog,
311 struct bpf_map *map) { return 0; }
312static inline void bpf_cgroup_storage_release(struct bpf_prog *prog,
313 struct bpf_map *map) {}
314static inline struct bpf_cgroup_storage *bpf_cgroup_storage_alloc(
Bo YU71b91a52019-03-08 01:45:51 -0500315 struct bpf_prog *prog, enum bpf_cgroup_storage_type stype) { return NULL; }
Roman Gushchinde9cbba2018-08-02 14:27:18 -0700316static inline void bpf_cgroup_storage_free(
317 struct bpf_cgroup_storage *storage) {}
Roman Gushchinb741f162018-09-28 14:45:43 +0000318static inline int bpf_percpu_cgroup_storage_copy(struct bpf_map *map, void *key,
319 void *value) {
320 return 0;
321}
322static inline int bpf_percpu_cgroup_storage_update(struct bpf_map *map,
323 void *key, void *value, u64 flags) {
324 return 0;
325}
Roman Gushchinde9cbba2018-08-02 14:27:18 -0700326
Andrey Ignatov13193b02018-05-25 08:55:22 -0700327#define cgroup_bpf_enabled (0)
Andrey Ignatovd74bad42018-03-30 15:08:05 -0700328#define BPF_CGROUP_PRE_CONNECT_ENABLED(sk) (0)
Daniel Mack30070982016-11-23 16:52:26 +0100329#define BPF_CGROUP_RUN_PROG_INET_INGRESS(sk,skb) ({ 0; })
330#define BPF_CGROUP_RUN_PROG_INET_EGRESS(sk,skb) ({ 0; })
David Ahern610236582016-12-01 08:48:04 -0800331#define BPF_CGROUP_RUN_PROG_INET_SOCK(sk) ({ 0; })
Andrey Ignatov4fbac772018-03-30 15:08:02 -0700332#define BPF_CGROUP_RUN_PROG_INET4_BIND(sk, uaddr) ({ 0; })
333#define BPF_CGROUP_RUN_PROG_INET6_BIND(sk, uaddr) ({ 0; })
Andrey Ignatovaac3fc32018-03-30 15:08:07 -0700334#define BPF_CGROUP_RUN_PROG_INET4_POST_BIND(sk) ({ 0; })
335#define BPF_CGROUP_RUN_PROG_INET6_POST_BIND(sk) ({ 0; })
Andrey Ignatovd74bad42018-03-30 15:08:05 -0700336#define BPF_CGROUP_RUN_PROG_INET4_CONNECT(sk, uaddr) ({ 0; })
337#define BPF_CGROUP_RUN_PROG_INET4_CONNECT_LOCK(sk, uaddr) ({ 0; })
338#define BPF_CGROUP_RUN_PROG_INET6_CONNECT(sk, uaddr) ({ 0; })
339#define BPF_CGROUP_RUN_PROG_INET6_CONNECT_LOCK(sk, uaddr) ({ 0; })
Andrey Ignatov1cedee12018-05-25 08:55:23 -0700340#define BPF_CGROUP_RUN_PROG_UDP4_SENDMSG_LOCK(sk, uaddr, t_ctx) ({ 0; })
341#define BPF_CGROUP_RUN_PROG_UDP6_SENDMSG_LOCK(sk, uaddr, t_ctx) ({ 0; })
Lawrence Brakmo40304b22017-06-30 20:02:40 -0700342#define BPF_CGROUP_RUN_PROG_SOCK_OPS(sock_ops) ({ 0; })
Roman Gushchinebc614f2017-11-05 08:15:32 -0500343#define BPF_CGROUP_RUN_PROG_DEVICE_CGROUP(type,major,minor,access) ({ 0; })
Andrey Ignatove1550bf2019-03-07 18:50:52 -0800344#define BPF_CGROUP_RUN_PROG_SYSCTL(head,table,write,buf,count,pos,nbuf) ({ 0; })
Daniel Mack30070982016-11-23 16:52:26 +0100345
Roman Gushchin8bad74f2018-09-28 14:45:36 +0000346#define for_each_cgroup_storage_type(stype) for (; false; )
347
Daniel Mack30070982016-11-23 16:52:26 +0100348#endif /* CONFIG_CGROUP_BPF */
349
350#endif /* _BPF_CGROUP_H */