Searched refs:MS_BIND (Results 1 – 13 of 13) sorted by relevance
/linux-6.6.21/tools/testing/selftests/mount/ |
D | unprivileged-remount-test.c | 231 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/ |
D | devpts_pts.c | 238 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/ |
D | mount.c | 207 } 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/ |
D | mount.h | 24 #define MS_BIND 4096 macro
|
/linux-6.6.21/include/uapi/linux/ |
D | mount.h | 24 #define MS_BIND 4096 macro
|
/linux-6.6.21/samples/seccomp/ |
D | user-trap.c | 120 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/ |
D | move_mount_set_group_test.c | 215 if (mount(SET_GROUP_FROM, SET_GROUP_TO, NULL, MS_BIND, NULL)) in move_mount_set_group_supported()
|
/linux-6.6.21/security/apparmor/ |
D | mount.c | 51 if (flags & MS_BIND) in audit_mnt_flags() 435 flags &= MS_REC | MS_BIND; in aa_bind_mount()
|
D | lsm.c | 602 else if (flags & MS_BIND) in apparmor_sb_mount()
|
/linux-6.6.21/tools/testing/selftests/mount_setattr/ |
D | mount_setattr_test.c | 413 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/ |
D | common.c | 163 if (mount(target, target, "none", MS_BIND, NULL)) { in mnt_fs()
|
/linux-6.6.21/fs/ |
D | namespace.c | 3662 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/ |
D | fs_test.c | 3749 ASSERT_EQ(0, mount(dir_s1d2, dir_s2d2, NULL, MS_BIND, NULL)); in FIXTURE_SETUP() 4567 .flags = MS_BIND, in FIXTURE_VARIANT_ADD()
|