From: Richard Haines <richard_c_haines@btinternet.com>
To: selinux@vger.kernel.org, linux-security-module@vger.kernel.org,
osmocom-net-gprs@lists.osmocom.org
Cc: stephen.smalley.work@gmail.com, paul@paul-moore.com,
pablo@netfilter.org, laforge@gnumonks.org, jmorris@namei.org,
Richard Haines <richard_c_haines@btinternet.com>
Subject: [RFC PATCH 0/1] selinux-testsuite: Add GTP tests
Date: Thu, 24 Sep 2020 09:53:13 +0100 [thread overview]
Message-ID: <20200924085314.6120-1-richard_c_haines@btinternet.com> (raw)
These tests were performed on Fedora 32 Workstation with the 'targeted'
policy using an updated kernel with the GTP RFC kernel patches.
See the tests/gtp/GTP-README for detailed setup/testing.
The libgtpnl patch is at:
tests/gtp/Update-libgtpnl-for-SELinux-testsuite-GTP-tests.patch
The basic process is:
1) Build kernel with RFC LSM/GTP/SELinux patches (use the
selinux-testsuite/defconfig file to set correct config if required).
2) Setup the selinux-testsuite and add the GTP test patch.
3) Build/install the libgtpnl library using a patch from the
selinux-testsuite as this will allow errors to be returned by the
library functions.
4) Build/run selinux-testsuite for all SELinux tests (sets up the
environment).
5) Run the GTP tests locally to see more info.
6) Remove the selinux-testsuite policy.
Richard Haines (1):
selinux-testsuite: Add GTP tests
defconfig | 4 +
policy/Makefile | 5 +
policy/test_gtp.cil | 18 +
policy/test_gtp.te | 96 +++++
tests/Makefile | 4 +
tests/gtp/.gitignore | 2 +
tests/gtp/GTP-README | 123 ++++++
tests/gtp/Makefile | 8 +
...tpnl-for-SELinux-testsuite-GTP-tests.patch | 366 ++++++++++++++++++
tests/gtp/gtp-link.c | 134 +++++++
tests/gtp/gtp-tunnel.c | 263 +++++++++++++
tests/gtp/test | 169 ++++++++
12 files changed, 1192 insertions(+)
create mode 100644 policy/test_gtp.cil
create mode 100644 policy/test_gtp.te
create mode 100644 tests/gtp/.gitignore
create mode 100644 tests/gtp/GTP-README
create mode 100644 tests/gtp/Makefile
create mode 100644 tests/gtp/Update-libgtpnl-for-SELinux-testsuite-GTP-tests.patch
create mode 100644 tests/gtp/gtp-link.c
create mode 100644 tests/gtp/gtp-tunnel.c
create mode 100755 tests/gtp/test
--
2.26.2
next reply other threads:[~2020-09-24 8:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-24 8:53 Richard Haines [this message]
2020-09-24 8:53 ` [RFC PATCH 1/1] selinux-testsuite: Add GTP tests Richard Haines
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200924085314.6120-1-richard_c_haines@btinternet.com \
--to=richard_c_haines@btinternet.com \
--cc=jmorris@namei.org \
--cc=laforge@gnumonks.org \
--cc=linux-security-module@vger.kernel.org \
--cc=osmocom-net-gprs@lists.osmocom.org \
--cc=pablo@netfilter.org \
--cc=paul@paul-moore.com \
--cc=selinux@vger.kernel.org \
--cc=stephen.smalley.work@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.