* [RFC PATCH 0/1] selinux-testsuite: Add binder tests
@ 2018-05-15 8:25 Richard Haines
2018-05-15 13:11 ` Stephen Smalley
0 siblings, 1 reply; 2+ messages in thread
From: Richard Haines @ 2018-05-15 8:25 UTC (permalink / raw)
To: selinux
Not sure how useful this is but saw [1] and thought I'll have a go out
of idle curiosity.
I've only tested on Fedora 27 with kernel-4.16.3-200.fc27.x86_64
Use ./test -v to see the flow of binder info
I just added the following to the standard kernel-x86_64.config:
CONFIG_ANDROID_BINDER_DEVICES="binder"
CONFIG_ANDROID_BINDER_IPC=y
# CONFIG_ANDROID_BINDER_IPC_SELFTEST is not set
[1] https://github.com/SELinuxProject/selinux-testsuite/issues/27
Richard Haines (1):
selinux-testsuite: Add binder tests
README.md | 8 +
defconfig | 8 +
policy/Makefile | 2 +-
policy/test_binder.te | 83 +++++++
tests/Makefile | 2 +-
tests/binder/Makefile | 7 +
tests/binder/check_binder.c | 80 +++++++
tests/binder/test | 131 +++++++++++
tests/binder/test_binder.c | 543 ++++++++++++++++++++++++++++++++++++++++++++
9 files changed, 862 insertions(+), 2 deletions(-)
create mode 100644 policy/test_binder.te
create mode 100644 tests/binder/Makefile
create mode 100644 tests/binder/check_binder.c
create mode 100644 tests/binder/test
create mode 100644 tests/binder/test_binder.c
--
2.14.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC PATCH 0/1] selinux-testsuite: Add binder tests
2018-05-15 8:25 [RFC PATCH 0/1] selinux-testsuite: Add binder tests Richard Haines
@ 2018-05-15 13:11 ` Stephen Smalley
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Smalley @ 2018-05-15 13:11 UTC (permalink / raw)
To: Richard Haines, selinux
On 05/15/2018 04:25 AM, Richard Haines via Selinux wrote:
> Not sure how useful this is but saw [1] and thought I'll have a go out
> of idle curiosity.
I haven't looked at the code yet but I'm in favor of adding it - this should
help prevent regressions in the binder SELinux checks in upstream kernels.
>
> I've only tested on Fedora 27 with kernel-4.16.3-200.fc27.x86_64
>
> Use ./test -v to see the flow of binder info
>
> I just added the following to the standard kernel-x86_64.config:
> CONFIG_ANDROID_BINDER_DEVICES="binder"
> CONFIG_ANDROID_BINDER_IPC=y
> # CONFIG_ANDROID_BINDER_IPC_SELFTEST is not set
>
> [1] https://github.com/SELinuxProject/selinux-testsuite/issues/27
>
> Richard Haines (1):
> selinux-testsuite: Add binder tests
>
> README.md | 8 +
> defconfig | 8 +
> policy/Makefile | 2 +-
> policy/test_binder.te | 83 +++++++
> tests/Makefile | 2 +-
> tests/binder/Makefile | 7 +
> tests/binder/check_binder.c | 80 +++++++
> tests/binder/test | 131 +++++++++++
> tests/binder/test_binder.c | 543 ++++++++++++++++++++++++++++++++++++++++++++
> 9 files changed, 862 insertions(+), 2 deletions(-)
> create mode 100644 policy/test_binder.te
> create mode 100644 tests/binder/Makefile
> create mode 100644 tests/binder/check_binder.c
> create mode 100644 tests/binder/test
> create mode 100644 tests/binder/test_binder.c
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-15 13:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-15 8:25 [RFC PATCH 0/1] selinux-testsuite: Add binder tests Richard Haines
2018-05-15 13:11 ` Stephen Smalley
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.