Home
last modified time | relevance | path

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

/Linux-v4.19/tools/testing/selftests/mount/
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-v4.19/tools/testing/selftests/filesystems/
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-v4.19/security/tomoyo/
Dmount.c204 } else if (flags & MS_BIND) { in tomoyo_mount_permission()
206 flags &= ~MS_BIND; in tomoyo_mount_permission()
/Linux-v4.19/include/uapi/linux/
Dfs.h118 #define MS_BIND 4096 macro
/Linux-v4.19/security/apparmor/
Dmount.c54 if (flags & MS_BIND) in audit_mnt_flags()
437 flags &= MS_REC | MS_BIND; in aa_bind_mount()
Dlsm.c538 else if (flags & MS_BIND) in apparmor_sb_mount()
/Linux-v4.19/tools/bpf/bpftool/
Dcommon.c114 if (mount(target, target, "none", MS_BIND, NULL)) { in mnt_bpffs()
/Linux-v4.19/fs/
Dnamespace.c2273 if (ms_flags & MS_BIND) in do_remount()
2780 else if (flags & MS_BIND) in do_mount()