Searched refs:MS_BIND (Results 1 – 13 of 13) sorted by relevance
/linux/tools/testing/selftests/mount/ |
A 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/tools/testing/selftests/filesystems/ |
A 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/security/tomoyo/ |
A D | mount.c | 207 } else if (flags & MS_BIND) { in tomoyo_mount_permission() 209 flags &= ~MS_BIND; in tomoyo_mount_permission()
|
/linux/samples/seccomp/ |
A 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/tools/include/uapi/linux/ |
A D | mount.h | 24 #define MS_BIND 4096 macro
|
/linux/include/uapi/linux/ |
A D | mount.h | 24 #define MS_BIND 4096 macro
|
/linux/tools/testing/selftests/move_mount_set_group/ |
A 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/security/apparmor/ |
A D | mount.c | 51 if (flags & MS_BIND) in audit_mnt_flags() 436 flags &= MS_REC | MS_BIND; in aa_bind_mount()
|
A D | lsm.c | 554 else if (flags & MS_BIND) in apparmor_sb_mount()
|
/linux/tools/testing/selftests/mount_setattr/ |
A D | mount_setattr_test.c | 419 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 D | common.c | 140 if (mount(target, target, "none", MS_BIND, NULL)) { in mnt_fs()
|
/linux/fs/ |
A D | namespace.c | 3307 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 D | fs_test.c | 2083 ASSERT_EQ(0, mount(dir_s1d2, dir_s2d2, NULL, MS_BIND, NULL)); in FIXTURE_SETUP()
|
Completed in 29 milliseconds