Skip to content

bpf: A bit of progress toward unprivileged use

Andy Lutomirski bpf linux-api linux-security-module lkml netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4bpf: Respect persistent map and prog access modesinclude/linux/bpf.h kernel/bpf/arraymap.c kernel/bpf/cgroup.c +7 more+89 -400 replies
2/4bpf: Don't require mknod() permission to pin an objectkernel/bpf/inode.c+0 -40 replies
3/4bpf: Add a way to mark functions as requiring privilegeinclude/linux/bpf.h include/linux/bpf_verifier.h kernel/bpf/verifier.c +1 more+25 -00 replies
4/4bpf: Allow creating all program types without privilegekernel/bpf/syscall.c+1 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [WIP 0/4] bpf: A bit of progress toward unprivileged use

Other than the mknod() patch, this is not ready for prime time. These patches try to make progress toward making bpf() more useful without privilege

Andy Lutomirski (4):
bpf: Respect persistent map and prog access modes
bpf: Don't require mknod() permission to pin an object
bpf: Add a way to mark functions as requiring privilege
bpf: Allow creating all program types without privilege

 include/linux/bpf.h          | 30 +++++++++++++++-----
 include/linux/bpf_verifier.h |  1 +
 kernel/bpf/arraymap.c        |  8 +++++-
 kernel/bpf/cgroup.c          |  6 +++-
 kernel/bpf/inode.c           | 29 +++++++++++--------
 kernel/bpf/syscall.c         | 54 +++++++++++++++++++++++++-----------
 kernel/bpf/verifier.c        |  8 ++++++
 kernel/events/core.c         |  5 ++--
 kernel/trace/bpf_trace.c     |  1 +
 net/core/dev.c               |  4 ++-
 net/core/filter.c            |  8 ++++--
 net/netfilter/xt_bpf.c       |  5 ++--
 net/packet/af_packet.c       |  2 +-
 13 files changed, 115 insertions(+), 46 deletions(-)
Signature · 1 line
2.21.0