Skip to content
Commit 8ec90bfd authored by Ross Zwisler's avatar Ross Zwisler Committed by Al Viro
Browse files

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: default avatarRoss Zwisler <zwisler@google.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent dab741e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment