|
|
Log in / Subscribe / Register

bpf: A bit of progress toward unprivileged use

From:  Andy Lutomirski <luto-AT-kernel.org>
To:  LKML <linux-kernel-AT-vger.kernel.org>, Alexei Starovoitov <alexei.starovoitov-AT-gmail.com>
Subject:  [WIP 0/4] bpf: A bit of progress toward unprivileged use
Date:  Mon, 5 Aug 2019 14:29:01 -0700
Message-ID:  <cover.1565040372.git.luto@kernel.org>
Cc:  Song Liu <songliubraving-AT-fb.com>, Kees Cook <keescook-AT-chromium.org>, Networking <netdev-AT-vger.kernel.org>, bpf <bpf-AT-vger.kernel.org>, Daniel Borkmann <daniel-AT-iogearbox.net>, Alexei Starovoitov <ast-AT-kernel.org>, Kernel Team <Kernel-team-AT-fb.com>, Lorenz Bauer <lmb-AT-cloudflare.com>, Jann Horn <jannh-AT-google.com>, Greg KH <gregkh-AT-linuxfoundation.org>, Linux API <linux-api-AT-vger.kernel.org>, LSM List <linux-security-module-AT-vger.kernel.org>, Andy Lutomirski <luto-AT-kernel.org>
Archive-link:  Article

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(-)

-- 
2.21.0



Copyright © 2019, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds