diff options
author | Christian Brauner <christian@brauner.io> | 2019-01-17 12:48:54 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-30 15:19:56 +0100 |
commit | 75abec73de65a86a23019ee7a3569220ee344f37 (patch) | |
tree | 150b4d375c70c2fdba9105ed0ca99c447fd9580d /tools/testing/selftests/filesystems/binderfs/Makefile | |
parent | Linux 5.0-rc4 (diff) | |
download | linux-dev-75abec73de65a86a23019ee7a3569220ee344f37.tar.xz linux-dev-75abec73de65a86a23019ee7a3569220ee344f37.zip |
selftests: add binderfs selftests
This adds the promised selftest for binderfs. It will verify the following
things:
- binderfs mounting works
- binder device allocation works
- performing a binder ioctl() request through a binderfs device works
- binder device removal works
- binder-control removal fails
- binderfs unmounting works
The tests are performed both privileged and unprivileged. The latter
verifies that binderfs behaves correctly in user namespaces.
Cc: Todd Kjos <tkjos@google.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Acked-by: Shuah Khan <shuah@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/filesystems/binderfs/Makefile')
-rw-r--r-- | tools/testing/selftests/filesystems/binderfs/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/testing/selftests/filesystems/binderfs/Makefile b/tools/testing/selftests/filesystems/binderfs/Makefile new file mode 100644 index 000000000000..58cb659b56b4 --- /dev/null +++ b/tools/testing/selftests/filesystems/binderfs/Makefile @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0 + +CFLAGS += -I../../../../../usr/include/ +TEST_GEN_PROGS := binderfs_test + +include ../../lib.mk |