From: Alexei Starovoitov Subject: Re: [PATCH net] bpf: expose netns inode to bpf programs Date: Fri, 3 Feb 2017 15:08:32 -0800 Message-ID: <20170203230830.GC26227@ast-mbp.thefacebook.com> References: <87efzq8jbi.fsf@xmission.com> <588995DE.9040707@fb.com> <588A35F8.6050909@fb.com> <588A40D7.9070603@fb.com> <588A4D3C.9070601@fb.com> <87r33fevva.fsf@xmission.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Eric W. Biederman" , Alexei Starovoitov , Linus Torvalds , "David S . Miller" , Daniel Borkmann , David Ahern , Tejun Heo , Thomas Graf , Network Development To: Andy Lutomirski Return-path: Received: from mail-pg0-f65.google.com ([74.125.83.65]:34562 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752713AbdBCXIi (ORCPT ); Fri, 3 Feb 2017 18:08:38 -0500 Received: by mail-pg0-f65.google.com with SMTP id v184so3076353pgv.1 for ; Fri, 03 Feb 2017 15:08:38 -0800 (PST) Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Fri, Feb 03, 2017 at 01:00:47PM -0800, Andy Lutomirski wrote: > > ISTM any ability to migrate namespaces and to migrate eBPF programs > that know about namespaces needs to have the eBPF program firmly > rooted in some namespace (or perhaps cgroup in this case) so that it programs are already global. We cannot break that. > can see a namespaced view of the world. For this to work, presumably > we need to make sure that eBPF programs that are installed by programs > that are in a container don't see traffic that isn't in that > container. such approach will break existing users.