Symbol: MS_BIND
fs/namespace.c
4148
if ((flags & (MS_REMOUNT | MS_BIND)) == (MS_REMOUNT | MS_BIND))
fs/namespace.c
4152
if (flags & MS_BIND)
samples/seccomp/user-trap.c
124
if (!(req->data.args[3] & MS_BIND))
samples/seccomp/user-trap.c
266
if (mount("/tmp/foo", "/tmp/foo", NULL, MS_BIND, NULL) < 0) {
security/apparmor/lsm.c
718
else if (flags & MS_BIND)
security/apparmor/mount.c
435
flags &= MS_REC | MS_BIND;
security/apparmor/mount.c
53
if (flags & MS_BIND)
security/tomoyo/mount.c
209
} else if (flags & MS_BIND) {
security/tomoyo/mount.c
211
flags &= ~MS_BIND;
tools/bpf/bpftool/common.c
166
if (mount(target, target, "none", MS_BIND, NULL)) {
tools/testing/selftests/filesystems/devpts_pts.c
238
ret = mount("/dev/pts/ptmx", "/dev/ptmx", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/devpts_pts.c
265
ret = mount("/dev/pts/ptmx", ptmx, NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
247
ret = mount("/", "/", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
257
ret = mount("/", "/", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
282
ret = mount("/", "/a", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
378
ret = mount("/", "/a", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
384
ret = mount("/a", "/b", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
395
ret = mount("/", "/a", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
403
ret = mount("/", "/b", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
450
ret = mount("/", "/a", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
453
ret = mount("/", "/a/b", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
502
ret = mount("/a", "/a/new", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
274
ret = mount("/", "/", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
284
ret = mount("/", "/", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
309
ret = mount("/", "/a", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
405
ret = mount("/", "/a", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
411
ret = mount("/a", "/b", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
422
ret = mount("/", "/a", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
430
ret = mount("/", "/b", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
477
ret = mount("/", "/a", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
480
ret = mount("/", "/a/b", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
529
ret = mount("/a", "/a/new", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/statmount/statmount_test.c
178
ret = mount(root_mntpoint, root_mntpoint, NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/statmount/statmount_test.c
208
ret = mount("/", "/", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/statmount/statmount_test.c
697
if (mount(subdir, subdir, NULL, MS_BIND, 0)) {
tools/testing/selftests/filesystems/statmount/statmount_test.c
831
if (mount(subdir, subdir, 0, MS_BIND, NULL)) {
tools/testing/selftests/filesystems/statmount/statmount_test_ns.c
147
if (mount(mnt, mnt, NULL, MS_BIND, 0)) {
tools/testing/selftests/landlock/fs_test.c
4595
ASSERT_EQ(0, mount(dir_s1d2, dir_s2d2, NULL, MS_BIND, NULL));
tools/testing/selftests/landlock/fs_test.c
5285
MS_BIND, NULL));
tools/testing/selftests/landlock/fs_test.c
5847
NULL, MS_BIND, NULL));
tools/testing/selftests/landlock/fs_test.c
5849
MS_BIND | MS_REC, NULL));
tools/testing/selftests/landlock/fs_test.c
6836
.flags = MS_BIND,
tools/testing/selftests/mount/unprivileged-remount-test.c
231
MS_REMOUNT | MS_BIND | remount_flags, NULL) != 0) {
tools/testing/selftests/mount/unprivileged-remount-test.c
238
MS_REMOUNT | MS_BIND | invalid_flags, NULL) == 0) {
tools/testing/selftests/mount/unprivileged-remount-test.c
297
ret = mount(orig_path, dest_path, "bind", MS_BIND | MS_REC, NULL);
tools/testing/selftests/mount/unprivileged-remount-test.c
304
MS_REMOUNT | MS_BIND | orig_mnt_flags , NULL);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1032
ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1441
ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
407
ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0);
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
215
if (mount(SET_GROUP_FROM, SET_GROUP_TO, NULL, MS_BIND, NULL))
tools/testing/selftests/namespaces/ns_active_ref_test.c
887
ret = mount("/proc/self/ns/net", tmpfile, NULL, MS_BIND, NULL);
tools/testing/selftests/proc/proc-pidns.c
78
ASSERT_SUCCESS(mount("/proc/self/ns/pid", "/tmp/dummy/pidns", NULL, MS_BIND, NULL));