mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
![Liav A.](/assets/img/avatar_default.png)
We add a prctl option which would be called once after the dynamic loader has finished to do text relocations before calling the actual program entry point. This change makes it much more obvious when we are allowed to change a region protection access from being writable to executable. The dynamic loader should be able to do this, but after a certain point it is obvious that such mechanism should be disabled.
19 lines
504 B
C
19 lines
504 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
|
|
#define PR_SET_NO_TRANSITION_TO_EXECUTABLE_FROM_WRITABLE_PROT 10
|