lkml.org 
[lkml]   [2015]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net-next 1/2] bpf: enable non-root eBPF programs

* Alexei Starovoitov <ast@plumgrid.com> wrote:

> As far as sysctl we can look at two with similar purpose:
> sysctl_perf_event_paranoid and modules_disabled.
> First one is indeed multi level, but not because of the fear of bugs,
> but because of real security implications.

It serves both purposes flexibly, and note that most people and distros will use
the default value.

> [...] Like raw events on hyperthreaded cpu or uncore events can extract data
> from other user processes. So it controls these extra privileges.

It also controls the generally increased risk caused by a larger attack surface,
which some users may not want to carry and which they can thus shrink.

With a static keys approach there would be no runtime overhead worth speaking of,
so I see no reason why unprivileged eBPF couldn't have a sysctl too - with the
default value set to permissive.

Thanks,

Ingo


\
 
 \ /
  Last update: 2015-10-08 08:41    [W:0.589 / U:0.844 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site