]> asedeno.scripts.mit.edu Git - linux.git/commit
selftests: add devpts selftests
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 13 Mar 2018 16:55:27 +0000 (17:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
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 <christian.brauner@ubuntu.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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]