Re: [RFC PATCH 4/5] net: filter: run cgroup eBPF programs

From
Tejun Heo <hidden>
Date
2016-08-17 14:59:26
Reply to
Daniel Mack, 2016-08-17
On Wed, Aug 17, 2016 at 04:36:02PM +0200, Daniel Mack wrote:
On 08/17/2016 04:23 PM, Tejun Heo wrote:
quoted
On Wed, Aug 17, 2016 at 04:00:47PM +0200, Daniel Mack wrote:
quoted
@@ -78,6 +116,12 @@ int sk_filter_trim_cap(struct sock *sk, struct sk_buff *skb, unsigned int cap)
 	if (skb_pfmemalloc(skb) && !sock_flag(sk, SOCK_MEMALLOC))
 		return -ENOMEM;
 
+#ifdef CONFIG_CGROUP_BPF
+	err = sk_filter_cgroup_bpf(sk, skb, BPF_ATTACH_TYPE_CGROUP_INGRESS);
+	if (err)
+		return err;
+#endif
Hmm... where does egress hook into?
As stated in the cover letter, that's an open question on my list.
lol sorry about that.  :)

-- 
tejun
Thread (39 messages) 39 messages, 8 authors, last reply 2016-08-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help