Browse Source

Kernel: Forked children should inherit unveil()'ed paths

Andreas Kling 5 năm trước cách đây
mục cha
commit
cf48c20170
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      Kernel/Process.cpp

+ 2 - 0
Kernel/Process.cpp

@@ -639,6 +639,8 @@ pid_t Process::sys$fork(RegisterDump& regs)
     child->m_root_directory_relative_to_global_root = m_root_directory_relative_to_global_root;
     child->m_root_directory_relative_to_global_root = m_root_directory_relative_to_global_root;
     child->m_promises = m_promises;
     child->m_promises = m_promises;
     child->m_execpromises = m_execpromises;
     child->m_execpromises = m_execpromises;
+    child->m_unveil_state = m_unveil_state;
+    child->m_unveiled_paths = m_unveiled_paths;
 
 
 #ifdef FORK_DEBUG
 #ifdef FORK_DEBUG
     dbgprintf("fork: child=%p\n", child);
     dbgprintf("fork: child=%p\n", child);