SELinux Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH V3 0/2] selinux-testsuite: Add BPF tests
@ 2019-08-14  9:21 Richard Haines
  0 siblings, 0 replies; only message in thread
From: Richard Haines @ 2019-08-14  9:21 UTC (permalink / raw)
  To: selinux, paul; +Cc: Richard Haines

Patch 1 Runs basic checks for BPF with map_create, map_read, map_write,
prog_load and prog_run permissions.
V2 Change - Split BPF code into bpf_common.c for others to use.
V3 Changes - Correct style, Fix typos

Patch 2 Updates fdreceive to test BPF security_file_receive() path using
the common BPF code in tests/bpf.
V2 Change - Added to use tests/bpf/bpf_common.c for BPF tests.
V3 Changes - Run tests under tests/bpf not tests/fdreceive, fix typos.

Richard Haines (2):
  selinux-testsuite: Add BPF tests
  selinux-testsuite: Add BPF support to fdreceive test

 README.md                    |   4 +-
 defconfig                    |   5 ++
 policy/Makefile              |   4 ++
 policy/test_bpf.te           |  77 +++++++++++++++++++++++++++
 policy/test_fdreceive_bpf.te |  60 +++++++++++++++++++++
 tests/Makefile               |   4 ++
 tests/bpf/.gitignore         |   2 +
 tests/bpf/Makefile           |  16 ++++++
 tests/bpf/bpf_common.c       |  97 +++++++++++++++++++++++++++++++++
 tests/bpf/bpf_test.c         |  82 ++++++++++++++++++++++++++++
 tests/bpf/test               | 100 +++++++++++++++++++++++++++++++++++
 tests/fdreceive/Makefile     |  18 ++++++-
 tests/fdreceive/client.c     |  72 +++++++++++++++++++++----
 13 files changed, 528 insertions(+), 13 deletions(-)
 create mode 100644 policy/test_bpf.te
 create mode 100644 policy/test_fdreceive_bpf.te
 create mode 100644 tests/bpf/.gitignore
 create mode 100644 tests/bpf/Makefile
 create mode 100644 tests/bpf/bpf_common.c
 create mode 100644 tests/bpf/bpf_test.c
 create mode 100755 tests/bpf/test

-- 
2.21.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-14  9:21 [PATCH V3 0/2] selinux-testsuite: Add BPF tests Richard Haines

SELinux Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/selinux/0 selinux/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 selinux selinux/ https://lore.kernel.org/selinux \
		selinux@vger.kernel.org
	public-inbox-index selinux

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.selinux


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git