1
Fork 0
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:
Liav A 2022-12-25 12:11:27 +02:00 committed by Linus Groh
parent 727218ff4a
commit bedd90b1f0
3 changed files with 12 additions and 16 deletions

View file

@ -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> {