lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170427062449.80290-1-kafai@fb.com>
Date:   Wed, 26 Apr 2017 23:24:47 -0700
From:   Martin KaFai Lau <kafai@...com>
To:     <netdev@...r.kernel.org>
CC:     Daniel Borkmann <daniel@...earbox.net>,
        Hannes Frederic Sowa <hannes@...essinduktion.org>,
        Alexei Starovoitov <ast@...com>, <kernel-team@...com>
Subject: [RFC net-next 0/2] Introduce bpf_prog ID and iteration

This patchset introduces the bpf_prog ID and a new bpf cmd to
iterate all bpf_prog in the system.

It is still incomplete.  The idea can be extended to bpf_map.

Martin KaFai Lau (2):
  bpf: Introduce bpf_prog ID
  bpf: Test for bpf_prog ID and BPF_PROG_GET_NEXT_ID

 include/linux/filter.h                     |  1 +
 include/uapi/linux/bpf.h                   |  6 ++
 kernel/bpf/syscall.c                       | 47 ++++++++++++++-
 tools/include/uapi/linux/bpf.h             |  6 ++
 tools/lib/bpf/bpf.c                        | 11 ++++
 tools/lib/bpf/bpf.h                        |  1 +
 tools/testing/selftests/bpf/Makefile       |  2 +-
 tools/testing/selftests/bpf/test_prog_id.c | 93 ++++++++++++++++++++++++++++++
 8 files changed, 165 insertions(+), 2 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/test_prog_id.c

-- 
2.9.3

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ