ladybird/Kernel/API/prctl_numbers.h
Liav A 1c0aa51684 Kernel+Userland: Remove the {get,set}_thread_name syscalls
These syscalls are not necessary on their own, and they give the false
impression that a caller could set or get the thread name of any process
in the system, which is not true.

Therefore, move the functionality of these syscalls to be options in the
prctl syscall, which makes it abundantly clear that these operations
could only occur from a running thread in a process that sees other
threads in that process only.
2023-08-25 11:51:52 +02:00

17 lines
439 B
C

/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#define PR_SET_DUMPABLE 1
#define PR_GET_DUMPABLE 2
#define PR_SET_NO_NEW_SYSCALL_REGION_ANNOTATIONS 3
#define PR_GET_NO_NEW_SYSCALL_REGION_ANNOTATIONS 4
#define PR_SET_COREDUMP_METADATA_VALUE 5
#define PR_SET_PROCESS_NAME 6
#define PR_GET_PROCESS_NAME 7
#define PR_SET_THREAD_NAME 8
#define PR_GET_THREAD_NAME 9