Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/mount/
H 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()
/openbmc/linux/tools/testing/selftests/filesystems/
H 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()
/openbmc/linux/security/tomoyo/
H A Dmount.c207 } else if (flags & MS_BIND) { in tomoyo_mount_permission()
209 flags &= ~MS_BIND; in tomoyo_mount_permission()
/openbmc/linux/include/uapi/linux/
H A Dmount.h24 #define MS_BIND 4096 macro
/openbmc/linux/tools/include/uapi/linux/
H A Dmount.h24 #define MS_BIND 4096 macro
/openbmc/linux/samples/seccomp/
H 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()
/openbmc/linux/tools/testing/selftests/move_mount_set_group/
H 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()
/openbmc/linux/security/apparmor/
H A Dmount.c51 if (flags & MS_BIND) in audit_mnt_flags()
435 flags &= MS_REC | MS_BIND; in aa_bind_mount()
H A Dlsm.c602 else if (flags & MS_BIND) in apparmor_sb_mount()
/openbmc/linux/tools/testing/selftests/mount_setattr/
H A 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()
/openbmc/linux/tools/bpf/bpftool/
H A Dcommon.c163 if (mount(target, target, "none", MS_BIND, NULL)) { in mnt_fs()
/openbmc/u-boot/fs/ubifs/
H A Dubifs.h485 #define MS_BIND 4096 macro
/openbmc/linux/fs/
H A Dnamespace.c3662 if ((flags & (MS_REMOUNT | MS_BIND)) == (MS_REMOUNT | MS_BIND)) in path_mount()
3666 if (flags & MS_BIND) in path_mount()
/openbmc/qemu/linux-user/
H A Dstrace.c1047 #ifdef MS_BIND
1048 FLAG_GENERIC(MS_BIND),
/openbmc/linux/tools/testing/selftests/landlock/
H A 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()