diff options
author | 2020-08-27 11:09:47 -0600 | |
---|---|---|
committer | 2020-08-27 16:06:47 -0400 | |
commit | 8ec90bfd1aeb39f44c3e704aaa9ca88c52e6866a (patch) | |
tree | 5c7b809b83e92e3843ff7f3cb042a6f0a06637f3 /tools/testing/selftests/mount/.gitignore | |
parent | Add a "nosymfollow" mount option. (diff) | |
download | linux-dev-8ec90bfd1aeb39f44c3e704aaa9ca88c52e6866a.tar.xz linux-dev-8ec90bfd1aeb39f44c3e704aaa9ca88c52e6866a.zip |
selftests: mount: add nosymfollow tests
Add tests for the new 'nosymfollow' mount option. We test to make sure
that symlink traversal fails with ELOOP when 'nosymfollow' is set, but
that readlink(2) and realpath(3) still work as expected. We also verify
that statfs(2) correctly returns ST_NOSYMFOLLOW when we are mounted with
the 'nosymfollow' option.
Signed-off-by: Ross Zwisler <zwisler@google.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'tools/testing/selftests/mount/.gitignore')
-rw-r--r-- | tools/testing/selftests/mount/.gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/mount/.gitignore b/tools/testing/selftests/mount/.gitignore index 0bc64a6d4c18..17f2d8415162 100644 --- a/tools/testing/selftests/mount/.gitignore +++ b/tools/testing/selftests/mount/.gitignore @@ -1,2 +1,3 @@ # SPDX-License-Identifier: GPL-2.0-only unprivileged-remount-test +nosymfollow-test |