selftests: add devpts selftests
authorChristian Brauner <[email protected]>
Tue, 13 Mar 2018 16:55:27 +0000 (17:55 +0100)
committerGreg Kroah-Hartman <[email protected]>
Wed, 14 Mar 2018 12:31:23 +0000 (13:31 +0100)
commitce290a19609d5ecd4a240a4750e0ed9a476cf015
treeda67976d66ac15ecac83dade8f543146ab238853
parent4e15f760a43c7cb88e2b7ad6882501ccab5de29f
selftests: add devpts selftests

This adds tests to check:
- bind-mounts from /dev/pts/ptmx to /dev/ptmx work
- non-standard mounts of devpts work
- bind-mounts of /dev/pts/ptmx to locations that do not resolve to a valid
  slave pty path under the originating devpts mount fail

Signed-off-by: Christian Brauner <[email protected]>
Acked-by: "Eric W. Biederman" <[email protected]>
Acked-by: Linus Torvalds <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
tools/testing/selftests/Makefile
tools/testing/selftests/filesystems/.gitignore
tools/testing/selftests/filesystems/Makefile
tools/testing/selftests/filesystems/devpts_pts.c [new file with mode: 0644]