mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +00:00
Kernel: Properly propagate bind mount flags
Previously, when performing a bind mount flags other than MS_BIND were ignored. Now, they're properly propagated the same way a for any other mount.
This commit is contained in:
parent
b620ed25ab
commit
93ff911473
3 changed files with 7 additions and 7 deletions
|
@ -3753,7 +3753,7 @@ int Process::sys$mount(const Syscall::SC_mount_params* user_params)
|
|||
if (source_or_error.is_error())
|
||||
return source_or_error.error();
|
||||
auto& source_custody = source_or_error.value();
|
||||
return VFS::the().bind_mount(source_custody, target_custody);
|
||||
return VFS::the().bind_mount(source_custody, target_custody, params.flags);
|
||||
}
|
||||
|
||||
if (fs_type == "ext2" || fs_type == "Ext2FS") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue