mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 10:32:35 +00:00
8ec90bfd1a
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>
10 lines
239 B
Makefile
10 lines
239 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Makefile for mount selftests.
|
|
CFLAGS = -Wall \
|
|
-O2
|
|
|
|
TEST_PROGS := run_unprivileged_remount.sh run_nosymfollow.sh
|
|
TEST_GEN_FILES := unprivileged-remount-test nosymfollow-test
|
|
|
|
include ../lib.mk
|