From bedd90b1f07e2da8326f2e520c985431fda73a25 Mon Sep 17 00:00:00 2001 From: Liav A Date: Sun, 25 Dec 2022 12:11:27 +0200 Subject: Kernel: Properly lock Process protected data in the prctl syscall --- Kernel/Process.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'Kernel/Process.cpp') diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 923028fe4f..449772a36d 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -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 Process::set_coredump_property(NonnullOwnPtr key, NonnullOwnPtr value) { return m_coredump_properties.with([&](auto& coredump_properties) -> ErrorOr { -- cgit v1.2.3