mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:28:11 +00:00
Kernel+Userland: Split bind-mounting and re-mounting from mount syscall
These 2 are an actual separate types of syscalls, so let's stop using special flags for bind mounting or re-mounting and instead let userspace calling directly for this kind of actions.
This commit is contained in:
parent
04b44a827a
commit
0bbd9040ef
10 changed files with 204 additions and 42 deletions
|
@ -53,6 +53,7 @@ enum class NeedsBigProcessLock {
|
|||
S(annotate_mapping, NeedsBigProcessLock::No) \
|
||||
S(beep, NeedsBigProcessLock::No) \
|
||||
S(bind, NeedsBigProcessLock::No) \
|
||||
S(bindmount, NeedsBigProcessLock::No) \
|
||||
S(chdir, NeedsBigProcessLock::No) \
|
||||
S(chmod, NeedsBigProcessLock::No) \
|
||||
S(chown, NeedsBigProcessLock::No) \
|
||||
|
@ -153,6 +154,7 @@ enum class NeedsBigProcessLock {
|
|||
S(recvfd, NeedsBigProcessLock::No) \
|
||||
S(recvmsg, NeedsBigProcessLock::Yes) \
|
||||
S(rename, NeedsBigProcessLock::No) \
|
||||
S(remount, NeedsBigProcessLock::No) \
|
||||
S(rmdir, NeedsBigProcessLock::No) \
|
||||
S(scheduler_get_parameters, NeedsBigProcessLock::No) \
|
||||
S(scheduler_set_parameters, NeedsBigProcessLock::No) \
|
||||
|
@ -437,6 +439,17 @@ struct SC_mount_params {
|
|||
int flags;
|
||||
};
|
||||
|
||||
struct SC_remount_params {
|
||||
StringArgument target;
|
||||
int flags;
|
||||
};
|
||||
|
||||
struct SC_bindmount_params {
|
||||
StringArgument target;
|
||||
int source_fd;
|
||||
int flags;
|
||||
};
|
||||
|
||||
struct SC_pledge_params {
|
||||
StringArgument promises;
|
||||
StringArgument execpromises;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue