Searched refs:MS_BIND (Results 1 – 8 of 8) sorted by relevance
/Linux-v4.19/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-v4.19/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-v4.19/security/tomoyo/ |
D | mount.c | 204 } else if (flags & MS_BIND) { in tomoyo_mount_permission() 206 flags &= ~MS_BIND; in tomoyo_mount_permission()
|
/Linux-v4.19/include/uapi/linux/ |
D | fs.h | 118 #define MS_BIND 4096 macro
|
/Linux-v4.19/security/apparmor/ |
D | mount.c | 54 if (flags & MS_BIND) in audit_mnt_flags() 437 flags &= MS_REC | MS_BIND; in aa_bind_mount()
|
D | lsm.c | 538 else if (flags & MS_BIND) in apparmor_sb_mount()
|
/Linux-v4.19/tools/bpf/bpftool/ |
D | common.c | 114 if (mount(target, target, "none", MS_BIND, NULL)) { in mnt_bpffs()
|
/Linux-v4.19/fs/ |
D | namespace.c | 2273 if (ms_flags & MS_BIND) in do_remount() 2780 else if (flags & MS_BIND) in do_mount()
|