Home
last modified time | relevance | path

Searched refs:MS_BIND (Results 1 – 13 of 13) sorted by relevance

/linux-6.6.21/tools/testing/selftests/mount/
Dunprivileged-remount-test.c231 MS_REMOUNT | MS_BIND | remount_flags, NULL) != 0) { in test_unpriv_remount()
238 MS_REMOUNT | MS_BIND | invalid_flags, NULL) == 0) { in test_unpriv_remount()
297 ret = mount(orig_path, dest_path, "bind", MS_BIND | MS_REC, NULL); in test_priv_mount_unpriv_remount()
304 MS_REMOUNT | MS_BIND | orig_mnt_flags , NULL); in test_priv_mount_unpriv_remount()
/linux-6.6.21/tools/testing/selftests/filesystems/
Ddevpts_pts.c238 ret = mount("/dev/pts/ptmx", "/dev/ptmx", NULL, MS_BIND, NULL); in verify_ptmx_bind_mount()
265 ret = mount("/dev/pts/ptmx", ptmx, NULL, MS_BIND, NULL); in verify_invalid_ptmx_bind_mount()
/linux-6.6.21/security/tomoyo/
Dmount.c207 } else if (flags & MS_BIND) { in tomoyo_mount_permission()
209 flags &= ~MS_BIND; in tomoyo_mount_permission()
/linux-6.6.21/tools/include/uapi/linux/
Dmount.h24 #define MS_BIND 4096 macro
/linux-6.6.21/include/uapi/linux/
Dmount.h24 #define MS_BIND 4096 macro
/linux-6.6.21/samples/seccomp/
Duser-trap.c120 if (!(req->data.args[3] & MS_BIND)) in handle_req()
262 if (mount("/tmp/foo", "/tmp/foo", NULL, MS_BIND, NULL) < 0) { in main()
/linux-6.6.21/tools/testing/selftests/move_mount_set_group/
Dmove_mount_set_group_test.c215 if (mount(SET_GROUP_FROM, SET_GROUP_TO, NULL, MS_BIND, NULL)) in move_mount_set_group_supported()
/linux-6.6.21/security/apparmor/
Dmount.c51 if (flags & MS_BIND) in audit_mnt_flags()
435 flags &= MS_REC | MS_BIND; in aa_bind_mount()
Dlsm.c602 else if (flags & MS_BIND) in apparmor_sb_mount()
/linux-6.6.21/tools/testing/selftests/mount_setattr/
Dmount_setattr_test.c413 ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0); in FIXTURE_SETUP()
1038 ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0); in FIXTURE_SETUP()
/linux-6.6.21/tools/bpf/bpftool/
Dcommon.c163 if (mount(target, target, "none", MS_BIND, NULL)) { in mnt_fs()
/linux-6.6.21/fs/
Dnamespace.c3662 if ((flags & (MS_REMOUNT | MS_BIND)) == (MS_REMOUNT | MS_BIND)) in path_mount()
3666 if (flags & MS_BIND) in path_mount()
/linux-6.6.21/tools/testing/selftests/landlock/
Dfs_test.c3749 ASSERT_EQ(0, mount(dir_s1d2, dir_s2d2, NULL, MS_BIND, NULL)); in FIXTURE_SETUP()
4567 .flags = MS_BIND, in FIXTURE_VARIANT_ADD()