diff options
author | Ross Zwisler <zwisler@chromium.org> | 2020-08-27 19:09:47 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-08-27 22:06:47 +0200 |
commit | 8ec90bfd1aeb39f44c3e704aaa9ca88c52e6866a (patch) | |
tree | 5c7b809b83e92e3843ff7f3cb042a6f0a06637f3 /tools/testing/selftests/mount/Makefile | |
parent | Add a "nosymfollow" mount option. (diff) | |
download | linux-8ec90bfd1aeb39f44c3e704aaa9ca88c52e6866a.tar.xz linux-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/Makefile')
-rw-r--r-- | tools/testing/selftests/mount/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/mount/Makefile b/tools/testing/selftests/mount/Makefile index 026890744215..2d9454841644 100644 --- a/tools/testing/selftests/mount/Makefile +++ b/tools/testing/selftests/mount/Makefile @@ -3,7 +3,7 @@ CFLAGS = -Wall \ -O2 -TEST_PROGS := run_tests.sh -TEST_GEN_FILES := unprivileged-remount-test +TEST_PROGS := run_unprivileged_remount.sh run_nosymfollow.sh +TEST_GEN_FILES := unprivileged-remount-test nosymfollow-test include ../lib.mk |