]> Git Repo - linux.git/commit
selftests: add binderfs selftests
authorChristian Brauner <[email protected]>
Thu, 17 Jan 2019 11:48:54 +0000 (12:48 +0100)
committerGreg Kroah-Hartman <[email protected]>
Wed, 30 Jan 2019 14:19:56 +0000 (15:19 +0100)
commit75abec73de65a86a23019ee7a3569220ee344f37
tree150b4d375c70c2fdba9105ed0ca99c447fd9580d
parentf17b5f06cb92ef2250513a1e154c47b78df07d40
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 <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Acked-by: Shuah Khan <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
tools/testing/selftests/Makefile
tools/testing/selftests/filesystems/binderfs/.gitignore [new file with mode: 0644]
tools/testing/selftests/filesystems/binderfs/Makefile [new file with mode: 0644]
tools/testing/selftests/filesystems/binderfs/binderfs_test.c [new file with mode: 0644]
tools/testing/selftests/filesystems/binderfs/config [new file with mode: 0644]
This page took 0.071906 seconds and 4 git commands to generate.