mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
unshare userns in addition to mntns and verify that: 1. watching tmpfs mounted inside userns is allowed with any mark type 2. watching orig root with filesystem mark type is not allowed 3. watching mntns of orig userns is not allowed 4. watching mntns in userns where fanotify_init was called is allowed mount events are only tested with the last case of mntns mark. Signed-off-by: Amir Goldstein <[email protected]> Link: https://lore.kernel.org/[email protected] Reviewed-by: Christian Brauner <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
12 lines
283 B
Makefile
12 lines
283 B
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
CFLAGS += -Wall -O2 -g $(KHDR_INCLUDES) $(TOOLS_INCLUDES)
|
|
LDLIBS += -lcap
|
|
|
|
TEST_GEN_PROGS := mount-notify_test mount-notify_test_ns
|
|
|
|
include ../../lib.mk
|
|
|
|
$(OUTPUT)/mount-notify_test: ../utils.c
|
|
$(OUTPUT)/mount-notify_test_ns: ../utils.c
|