Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/mount/
A 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/tools/testing/selftests/filesystems/
A 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/security/tomoyo/
A Dmount.c207 } else if (flags & MS_BIND) { in tomoyo_mount_permission()
209 flags &= ~MS_BIND; in tomoyo_mount_permission()
/linux/samples/seccomp/
A 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/tools/include/uapi/linux/
A Dmount.h24 #define MS_BIND 4096 macro
/linux/include/uapi/linux/
A Dmount.h24 #define MS_BIND 4096 macro
/linux/tools/testing/selftests/move_mount_set_group/
A 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/security/apparmor/
A Dmount.c51 if (flags & MS_BIND) in audit_mnt_flags()
436 flags &= MS_REC | MS_BIND; in aa_bind_mount()
A Dlsm.c554 else if (flags & MS_BIND) in apparmor_sb_mount()
/linux/tools/testing/selftests/mount_setattr/
A Dmount_setattr_test.c419 ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0); in FIXTURE_SETUP()
1044 ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0); in FIXTURE_SETUP()
/linux/tools/bpf/bpftool/
A Dcommon.c140 if (mount(target, target, "none", MS_BIND, NULL)) { in mnt_fs()
/linux/fs/
A Dnamespace.c3307 if ((flags & (MS_REMOUNT | MS_BIND)) == (MS_REMOUNT | MS_BIND)) in path_mount()
3311 if (flags & MS_BIND) in path_mount()
/linux/tools/testing/selftests/landlock/
A Dfs_test.c2083 ASSERT_EQ(0, mount(dir_s1d2, dir_s2d2, NULL, MS_BIND, NULL)); in FIXTURE_SETUP()

Completed in 29 milliseconds