mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-15 19:56:03 +00:00
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>
This commit is contained in:
parent
dab741e0e0
commit
8ec90bfd1a
6 changed files with 237 additions and 14 deletions
1
tools/testing/selftests/mount/.gitignore
vendored
1
tools/testing/selftests/mount/.gitignore
vendored
4
tools/testing/selftests/mount/run_nosymfollow.sh
Executable file
4
tools/testing/selftests/mount/run_nosymfollow.sh
Executable file
Loading…
Add table
Add a link
Reference in a new issue