mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
Kernel: Log when a process exits with an unlocked veil
This catches applications that make use of `unveil()`, but then do not lock the veil with `unveil(nullptr, nullptr)`.
This commit is contained in:
parent
611062df55
commit
6dd2ebfe8e
Notes:
sideshowbarker
2024-07-18 00:35:36 +09:00
Author: https://github.com/AtkinsSJ
Commit: 6dd2ebfe8e
Pull-request: https://github.com/SerenityOS/serenity/pull/11115
1 changed files with 3 additions and 0 deletions
|
@ -608,6 +608,9 @@ void Process::finalize()
|
|||
|
||||
dbgln_if(PROCESS_DEBUG, "Finalizing process {}", *this);
|
||||
|
||||
if (veil_state() == VeilState::Dropped)
|
||||
dbgln("\x1b[01;31mProcess '{}' exited with the veil left open\x1b[0m", name());
|
||||
|
||||
if (is_dumpable()) {
|
||||
if (m_should_generate_coredump)
|
||||
dump_core();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue