mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
1c0aa51684
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.
17 lines
439 B
C
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
|