mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00
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.
This commit is contained in:
parent
1458849850
commit
1c0aa51684
14 changed files with 54 additions and 63 deletions
|
@ -91,7 +91,6 @@ enum class NeedsBigProcessLock {
|
|||
S(get_dir_entries, NeedsBigProcessLock::No) \
|
||||
S(get_root_session_id, NeedsBigProcessLock::No) \
|
||||
S(get_stack_bounds, NeedsBigProcessLock::No) \
|
||||
S(get_thread_name, NeedsBigProcessLock::No) \
|
||||
S(getcwd, NeedsBigProcessLock::No) \
|
||||
S(getegid, NeedsBigProcessLock::No) \
|
||||
S(geteuid, NeedsBigProcessLock::No) \
|
||||
|
@ -162,7 +161,6 @@ enum class NeedsBigProcessLock {
|
|||
S(sendfd, NeedsBigProcessLock::No) \
|
||||
S(sendmsg, NeedsBigProcessLock::Yes) \
|
||||
S(set_mmap_name, NeedsBigProcessLock::No) \
|
||||
S(set_thread_name, NeedsBigProcessLock::No) \
|
||||
S(setegid, NeedsBigProcessLock::No) \
|
||||
S(seteuid, NeedsBigProcessLock::No) \
|
||||
S(setgid, NeedsBigProcessLock::No) \
|
||||
|
|
|
@ -13,3 +13,5 @@
|
|||
#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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue