mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-05 23:35:33 +00:00
Kernel: Properly lock Process protected data in the prctl syscall
This commit is contained in:
@@ -1017,13 +1017,6 @@ bool Process::add_thread(Thread& thread)
|
||||
return is_first;
|
||||
}
|
||||
|
||||
void Process::set_dumpable(bool dumpable)
|
||||
{
|
||||
with_mutable_protected_data([&](auto& protected_data) {
|
||||
protected_data.dumpable = dumpable;
|
||||
});
|
||||
}
|
||||
|
||||
ErrorOr<void> Process::set_coredump_property(NonnullOwnPtr<KString> key, NonnullOwnPtr<KString> value)
|
||||
{
|
||||
return m_coredump_properties.with([&](auto& coredump_properties) -> ErrorOr<void> {
|
||||
|
||||
Reference in New Issue
Block a user