bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* capable_bpf_net_admin()
@ 2020-06-18  6:43 Maciej Żenczykowski
  2020-06-18  7:01 ` capable_bpf_net_admin() Alexei Starovoitov
  0 siblings, 1 reply; 14+ messages in thread
From: Maciej Żenczykowski @ 2020-06-18  6:43 UTC (permalink / raw)
  To: BPF Mailing List, John Stultz, Alexei Starovoitov, Daniel Borkmann

is
(SYS_ADMIN || BPF) && NET_ADMIN

should this not be
SYS_ADMIN || (BPF && NET_ADMIN)

?

Won't this cause a just SYS_ADMIN process to fail to load network bpf progs?

(I haven't debugged this at all, but John is reporting 5.8-rc1 fails
to load bpf progs from Android's bpfloader with EPERM error)

Or are we okay with this user space visible behavioural change?

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-07-06 20:37 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-18  6:43 capable_bpf_net_admin() Maciej Żenczykowski
2020-06-18  7:01 ` capable_bpf_net_admin() Alexei Starovoitov
2020-06-18 10:19   ` capable_bpf_net_admin() Maciej Żenczykowski
2020-06-18 19:03     ` capable_bpf_net_admin() John Stultz
2020-06-18 19:21       ` capable_bpf_net_admin() Maciej Żenczykowski
2020-06-18 19:59         ` [PATCH] restore behaviour of CAP_SYS_ADMIN allowing the loading of net bpf program Maciej Żenczykowski
2020-06-18 21:02           ` Alexei Starovoitov
2020-06-20 21:26             ` [PATCH bpf v2] restore behaviour of CAP_SYS_ADMIN allowing the loading of networking bpf programs Maciej Żenczykowski
2020-06-22 19:44               ` John Stultz
2020-06-24  0:54                 ` Alexei Starovoitov
2020-07-06 20:11                   ` John Stultz
2020-07-06 20:15                     ` Daniel Borkmann
2020-07-06 20:36                       ` John Stultz
2020-06-20  1:59         ` capable_bpf_net_admin() John Stultz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).