Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1242672
| From | Hannes Frederic Sowa <hannes@stressinduktion.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 net-next 1/3] bpf: enable non-root eBPF programs |
| Date | 2015-10-08 20:30 +0200 |
| Message-ID | <qho70-33f-13@gated-at.bofh.it> (permalink) |
| References | <qhbWa-2nw-5@gated-at.bofh.it> <qhbWa-2nw-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Alexei, On Thu, Oct 8, 2015, at 07:23, Alexei Starovoitov wrote: > The feature is controlled by sysctl kernel.unprivileged_bpf_disabled. > This toggle defaults to off (0), but can be set true (1). Once true, > bpf programs and maps cannot be accessed from unprivileged process, > and the toggle cannot be set back to false. This approach seems fine to me. I am wondering if it makes sense to somehow allow ebpf access per namespace? I currently have no idea how that could work and on which namespace type to depend or going with a prctl or even cgroup maybe. The rationale behind this is, that maybe some namespaces like openstack router namespaces could make usage of advanced ebpf capabilities in the kernel, while other namespaces, especially where untrusted third parties are hosted, shouldn't have access to those facilities. In that way, hosters would be able to e.g. deploy more efficient performance monitoring container (which should still need not to run as root) while the majority of the users has no access to that. Or think about routing instances in some namespaces, etc. etc. Thanks, Hannes -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 net-next 0/3] bpf: unprivileged Alexei Starovoitov <ast@plumgrid.com> - 2015-10-08 07:30 +0200
[PATCH v2 net-next 3/3] bpf: add unprivileged bpf tests Alexei Starovoitov <ast@plumgrid.com> - 2015-10-08 07:30 +0200
Re: [PATCH v2 net-next 3/3] bpf: add unprivileged bpf tests Kees Cook <keescook@chromium.org> - 2015-10-08 19:50 +0200
Re: [PATCH v2 net-next 3/3] bpf: add unprivileged bpf tests Alexei Starovoitov <ast@plumgrid.com> - 2015-10-08 20:00 +0200
[PATCH v2 net-next 1/3] bpf: enable non-root eBPF programs Alexei Starovoitov <ast@plumgrid.com> - 2015-10-08 07:30 +0200
Re: [PATCH v2 net-next 1/3] bpf: enable non-root eBPF programs Kees Cook <keescook@chromium.org> - 2015-10-08 19:50 +0200
Re: [PATCH v2 net-next 1/3] bpf: enable non-root eBPF programs Hannes Frederic Sowa <hannes@stressinduktion.org> - 2015-10-08 20:30 +0200
Re: [PATCH v2 net-next 1/3] bpf: enable non-root eBPF programs Alexei Starovoitov <ast@plumgrid.com> - 2015-10-09 00:10 +0200
Re: [PATCH v2 net-next 1/3] bpf: enable non-root eBPF programs Hannes Frederic Sowa <hannes@stressinduktion.org> - 2015-10-09 13:50 +0200
Re: [PATCH v2 net-next 1/3] bpf: enable non-root eBPF programs Alexei Starovoitov <ast@plumgrid.com> - 2015-10-09 19:40 +0200
Re: [PATCH v2 net-next 1/3] bpf: enable non-root eBPF programs Daniel Borkmann <daniel@iogearbox.net> - 2015-10-09 19:50 +0200
Re: [PATCH v2 net-next 1/3] bpf: enable non-root eBPF programs Alexei Starovoitov <ast@plumgrid.com> - 2015-10-09 20:00 +0200
Re: [PATCH v2 net-next 1/3] bpf: enable non-root eBPF programs Thomas Graf <tgraf@suug.ch> - 2015-10-09 11:30 +0200
Re: [PATCH v2 net-next 0/3] bpf: unprivileged David Miller <davem@davemloft.net> - 2015-10-13 04:10 +0200
csiph-web