mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
Kernel: Move process pledge promises into protected data
This commit is contained in:
parent
37ad880660
commit
de6c5128fd
4 changed files with 31 additions and 31 deletions
|
@ -41,10 +41,6 @@ KResultOr<pid_t> Process::sys$fork(RegisterState& regs)
|
|||
return ENOMEM;
|
||||
child->m_root_directory = m_root_directory;
|
||||
child->m_root_directory_relative_to_global_root = m_root_directory_relative_to_global_root;
|
||||
child->m_promises = m_promises;
|
||||
child->m_execpromises = m_execpromises;
|
||||
child->m_has_promises = m_has_promises;
|
||||
child->m_has_execpromises = m_has_execpromises;
|
||||
child->m_veil_state = m_veil_state;
|
||||
child->m_unveiled_paths = m_unveiled_paths.deep_copy();
|
||||
child->m_fds = m_fds;
|
||||
|
@ -54,6 +50,10 @@ KResultOr<pid_t> Process::sys$fork(RegisterState& regs)
|
|||
|
||||
{
|
||||
MutableProtectedData child_data { *child };
|
||||
child_data->promises = protected_data().promises;
|
||||
child_data->execpromises = protected_data().execpromises;
|
||||
child_data->has_promises = protected_data().has_promises;
|
||||
child_data->has_execpromises = protected_data().has_execpromises;
|
||||
child_data->sid = this->sid();
|
||||
child_data->extra_gids = this->extra_gids();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue