mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
Kernel: Properly lock Process protected data in the prctl syscall
This commit is contained in:
parent
727218ff4a
commit
bedd90b1f0
3 changed files with 12 additions and 16 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue