Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: prctl.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef _LINUX_PRCTL_H
[1] Fix | Delete
#define _LINUX_PRCTL_H
[2] Fix | Delete
[3] Fix | Delete
#include <linux/types.h>
[4] Fix | Delete
[5] Fix | Delete
/* Values to pass as first argument to prctl() */
[6] Fix | Delete
[7] Fix | Delete
#define PR_SET_PDEATHSIG 1 /* Second arg is a signal */
[8] Fix | Delete
#define PR_GET_PDEATHSIG 2 /* Second arg is a ptr to return the signal */
[9] Fix | Delete
[10] Fix | Delete
/* Get/set current->mm->dumpable */
[11] Fix | Delete
#define PR_GET_DUMPABLE 3
[12] Fix | Delete
#define PR_SET_DUMPABLE 4
[13] Fix | Delete
[14] Fix | Delete
/* Get/set unaligned access control bits (if meaningful) */
[15] Fix | Delete
#define PR_GET_UNALIGN 5
[16] Fix | Delete
#define PR_SET_UNALIGN 6
[17] Fix | Delete
# define PR_UNALIGN_NOPRINT 1 /* silently fix up unaligned user accesses */
[18] Fix | Delete
# define PR_UNALIGN_SIGBUS 2 /* generate SIGBUS on unaligned user access */
[19] Fix | Delete
[20] Fix | Delete
/* Get/set whether or not to drop capabilities on setuid() away from
[21] Fix | Delete
* uid 0 (as per security/commoncap.c) */
[22] Fix | Delete
#define PR_GET_KEEPCAPS 7
[23] Fix | Delete
#define PR_SET_KEEPCAPS 8
[24] Fix | Delete
[25] Fix | Delete
/* Get/set floating-point emulation control bits (if meaningful) */
[26] Fix | Delete
#define PR_GET_FPEMU 9
[27] Fix | Delete
#define PR_SET_FPEMU 10
[28] Fix | Delete
# define PR_FPEMU_NOPRINT 1 /* silently emulate fp operations accesses */
[29] Fix | Delete
# define PR_FPEMU_SIGFPE 2 /* don't emulate fp operations, send SIGFPE instead */
[30] Fix | Delete
[31] Fix | Delete
/* Get/set floating-point exception mode (if meaningful) */
[32] Fix | Delete
#define PR_GET_FPEXC 11
[33] Fix | Delete
#define PR_SET_FPEXC 12
[34] Fix | Delete
# define PR_FP_EXC_SW_ENABLE 0x80 /* Use FPEXC for FP exception enables */
[35] Fix | Delete
# define PR_FP_EXC_DIV 0x010000 /* floating point divide by zero */
[36] Fix | Delete
# define PR_FP_EXC_OVF 0x020000 /* floating point overflow */
[37] Fix | Delete
# define PR_FP_EXC_UND 0x040000 /* floating point underflow */
[38] Fix | Delete
# define PR_FP_EXC_RES 0x080000 /* floating point inexact result */
[39] Fix | Delete
# define PR_FP_EXC_INV 0x100000 /* floating point invalid operation */
[40] Fix | Delete
# define PR_FP_EXC_DISABLED 0 /* FP exceptions disabled */
[41] Fix | Delete
# define PR_FP_EXC_NONRECOV 1 /* async non-recoverable exc. mode */
[42] Fix | Delete
# define PR_FP_EXC_ASYNC 2 /* async recoverable exception mode */
[43] Fix | Delete
# define PR_FP_EXC_PRECISE 3 /* precise exception mode */
[44] Fix | Delete
[45] Fix | Delete
/* Get/set whether we use statistical process timing or accurate timestamp
[46] Fix | Delete
* based process timing */
[47] Fix | Delete
#define PR_GET_TIMING 13
[48] Fix | Delete
#define PR_SET_TIMING 14
[49] Fix | Delete
# define PR_TIMING_STATISTICAL 0 /* Normal, traditional,
[50] Fix | Delete
statistical process timing */
[51] Fix | Delete
# define PR_TIMING_TIMESTAMP 1 /* Accurate timestamp based
[52] Fix | Delete
process timing */
[53] Fix | Delete
[54] Fix | Delete
#define PR_SET_NAME 15 /* Set process name */
[55] Fix | Delete
#define PR_GET_NAME 16 /* Get process name */
[56] Fix | Delete
[57] Fix | Delete
/* Get/set process endian */
[58] Fix | Delete
#define PR_GET_ENDIAN 19
[59] Fix | Delete
#define PR_SET_ENDIAN 20
[60] Fix | Delete
# define PR_ENDIAN_BIG 0
[61] Fix | Delete
# define PR_ENDIAN_LITTLE 1 /* True little endian mode */
[62] Fix | Delete
# define PR_ENDIAN_PPC_LITTLE 2 /* "PowerPC" pseudo little endian */
[63] Fix | Delete
[64] Fix | Delete
/* Get/set process seccomp mode */
[65] Fix | Delete
#define PR_GET_SECCOMP 21
[66] Fix | Delete
#define PR_SET_SECCOMP 22
[67] Fix | Delete
[68] Fix | Delete
/* Get/set the capability bounding set (as per security/commoncap.c) */
[69] Fix | Delete
#define PR_CAPBSET_READ 23
[70] Fix | Delete
#define PR_CAPBSET_DROP 24
[71] Fix | Delete
[72] Fix | Delete
/* Get/set the process' ability to use the timestamp counter instruction */
[73] Fix | Delete
#define PR_GET_TSC 25
[74] Fix | Delete
#define PR_SET_TSC 26
[75] Fix | Delete
# define PR_TSC_ENABLE 1 /* allow the use of the timestamp counter */
[76] Fix | Delete
# define PR_TSC_SIGSEGV 2 /* throw a SIGSEGV instead of reading the TSC */
[77] Fix | Delete
[78] Fix | Delete
/* Get/set securebits (as per security/commoncap.c) */
[79] Fix | Delete
#define PR_GET_SECUREBITS 27
[80] Fix | Delete
#define PR_SET_SECUREBITS 28
[81] Fix | Delete
[82] Fix | Delete
/*
[83] Fix | Delete
* Get/set the timerslack as used by poll/select/nanosleep
[84] Fix | Delete
* A value of 0 means "use default"
[85] Fix | Delete
*/
[86] Fix | Delete
#define PR_SET_TIMERSLACK 29
[87] Fix | Delete
#define PR_GET_TIMERSLACK 30
[88] Fix | Delete
[89] Fix | Delete
#define PR_TASK_PERF_EVENTS_DISABLE 31
[90] Fix | Delete
#define PR_TASK_PERF_EVENTS_ENABLE 32
[91] Fix | Delete
[92] Fix | Delete
/*
[93] Fix | Delete
* Set early/late kill mode for hwpoison memory corruption.
[94] Fix | Delete
* This influences when the process gets killed on a memory corruption.
[95] Fix | Delete
*/
[96] Fix | Delete
#define PR_MCE_KILL 33
[97] Fix | Delete
# define PR_MCE_KILL_CLEAR 0
[98] Fix | Delete
# define PR_MCE_KILL_SET 1
[99] Fix | Delete
[100] Fix | Delete
# define PR_MCE_KILL_LATE 0
[101] Fix | Delete
# define PR_MCE_KILL_EARLY 1
[102] Fix | Delete
# define PR_MCE_KILL_DEFAULT 2
[103] Fix | Delete
[104] Fix | Delete
#define PR_MCE_KILL_GET 34
[105] Fix | Delete
[106] Fix | Delete
/*
[107] Fix | Delete
* Tune up process memory map specifics.
[108] Fix | Delete
*/
[109] Fix | Delete
#define PR_SET_MM 35
[110] Fix | Delete
# define PR_SET_MM_START_CODE 1
[111] Fix | Delete
# define PR_SET_MM_END_CODE 2
[112] Fix | Delete
# define PR_SET_MM_START_DATA 3
[113] Fix | Delete
# define PR_SET_MM_END_DATA 4
[114] Fix | Delete
# define PR_SET_MM_START_STACK 5
[115] Fix | Delete
# define PR_SET_MM_START_BRK 6
[116] Fix | Delete
# define PR_SET_MM_BRK 7
[117] Fix | Delete
# define PR_SET_MM_ARG_START 8
[118] Fix | Delete
# define PR_SET_MM_ARG_END 9
[119] Fix | Delete
# define PR_SET_MM_ENV_START 10
[120] Fix | Delete
# define PR_SET_MM_ENV_END 11
[121] Fix | Delete
# define PR_SET_MM_AUXV 12
[122] Fix | Delete
# define PR_SET_MM_EXE_FILE 13
[123] Fix | Delete
# define PR_SET_MM_MAP 14
[124] Fix | Delete
# define PR_SET_MM_MAP_SIZE 15
[125] Fix | Delete
[126] Fix | Delete
/*
[127] Fix | Delete
* This structure provides new memory descriptor
[128] Fix | Delete
* map which mostly modifies /proc/pid/stat[m]
[129] Fix | Delete
* output for a task. This mostly done in a
[130] Fix | Delete
* sake of checkpoint/restore functionality.
[131] Fix | Delete
*/
[132] Fix | Delete
struct prctl_mm_map {
[133] Fix | Delete
__u64 start_code; /* code section bounds */
[134] Fix | Delete
__u64 end_code;
[135] Fix | Delete
__u64 start_data; /* data section bounds */
[136] Fix | Delete
__u64 end_data;
[137] Fix | Delete
__u64 start_brk; /* heap for brk() syscall */
[138] Fix | Delete
__u64 brk;
[139] Fix | Delete
__u64 start_stack; /* stack starts at */
[140] Fix | Delete
__u64 arg_start; /* command line arguments bounds */
[141] Fix | Delete
__u64 arg_end;
[142] Fix | Delete
__u64 env_start; /* environment variables bounds */
[143] Fix | Delete
__u64 env_end;
[144] Fix | Delete
__u64 *auxv; /* auxiliary vector */
[145] Fix | Delete
__u32 auxv_size; /* vector size */
[146] Fix | Delete
__u32 exe_fd; /* /proc/$pid/exe link file */
[147] Fix | Delete
};
[148] Fix | Delete
[149] Fix | Delete
/*
[150] Fix | Delete
* Set specific pid that is allowed to ptrace the current task.
[151] Fix | Delete
* A value of 0 mean "no process".
[152] Fix | Delete
*/
[153] Fix | Delete
#define PR_SET_PTRACER 0x59616d61
[154] Fix | Delete
# define PR_SET_PTRACER_ANY ((unsigned long)-1)
[155] Fix | Delete
[156] Fix | Delete
#define PR_SET_CHILD_SUBREAPER 36
[157] Fix | Delete
#define PR_GET_CHILD_SUBREAPER 37
[158] Fix | Delete
[159] Fix | Delete
/*
[160] Fix | Delete
* If no_new_privs is set, then operations that grant new privileges (i.e.
[161] Fix | Delete
* execve) will either fail or not grant them. This affects suid/sgid,
[162] Fix | Delete
* file capabilities, and LSMs.
[163] Fix | Delete
*
[164] Fix | Delete
* Operations that merely manipulate or drop existing privileges (setresuid,
[165] Fix | Delete
* capset, etc.) will still work. Drop those privileges if you want them gone.
[166] Fix | Delete
*
[167] Fix | Delete
* Changing LSM security domain is considered a new privilege. So, for example,
[168] Fix | Delete
* asking selinux for a specific new context (e.g. with runcon) will result
[169] Fix | Delete
* in execve returning -EPERM.
[170] Fix | Delete
*
[171] Fix | Delete
* See Documentation/userspace-api/no_new_privs.rst for more details.
[172] Fix | Delete
*/
[173] Fix | Delete
#define PR_SET_NO_NEW_PRIVS 38
[174] Fix | Delete
#define PR_GET_NO_NEW_PRIVS 39
[175] Fix | Delete
[176] Fix | Delete
#define PR_GET_TID_ADDRESS 40
[177] Fix | Delete
[178] Fix | Delete
#define PR_SET_THP_DISABLE 41
[179] Fix | Delete
#define PR_GET_THP_DISABLE 42
[180] Fix | Delete
[181] Fix | Delete
/*
[182] Fix | Delete
* Tell the kernel to start/stop helping userspace manage bounds tables.
[183] Fix | Delete
*/
[184] Fix | Delete
#define PR_MPX_ENABLE_MANAGEMENT 43
[185] Fix | Delete
#define PR_MPX_DISABLE_MANAGEMENT 44
[186] Fix | Delete
[187] Fix | Delete
#define PR_SET_FP_MODE 45
[188] Fix | Delete
#define PR_GET_FP_MODE 46
[189] Fix | Delete
# define PR_FP_MODE_FR (1 << 0) /* 64b FP registers */
[190] Fix | Delete
# define PR_FP_MODE_FRE (1 << 1) /* 32b compatibility */
[191] Fix | Delete
[192] Fix | Delete
/* Control the ambient capability set */
[193] Fix | Delete
#define PR_CAP_AMBIENT 47
[194] Fix | Delete
# define PR_CAP_AMBIENT_IS_SET 1
[195] Fix | Delete
# define PR_CAP_AMBIENT_RAISE 2
[196] Fix | Delete
# define PR_CAP_AMBIENT_LOWER 3
[197] Fix | Delete
# define PR_CAP_AMBIENT_CLEAR_ALL 4
[198] Fix | Delete
[199] Fix | Delete
/* arm64 Scalable Vector Extension controls */
[200] Fix | Delete
/* Flag values must be kept in sync with ptrace NT_ARM_SVE interface */
[201] Fix | Delete
#define PR_SVE_SET_VL 50 /* set task vector length */
[202] Fix | Delete
# define PR_SVE_SET_VL_ONEXEC (1 << 18) /* defer effect until exec */
[203] Fix | Delete
#define PR_SVE_GET_VL 51 /* get task vector length */
[204] Fix | Delete
/* Bits common to PR_SVE_SET_VL and PR_SVE_GET_VL */
[205] Fix | Delete
# define PR_SVE_VL_LEN_MASK 0xffff
[206] Fix | Delete
# define PR_SVE_VL_INHERIT (1 << 17) /* inherit across exec */
[207] Fix | Delete
[208] Fix | Delete
/* Per task speculation control */
[209] Fix | Delete
#define PR_GET_SPECULATION_CTRL 52
[210] Fix | Delete
#define PR_SET_SPECULATION_CTRL 53
[211] Fix | Delete
/* Speculation control variants */
[212] Fix | Delete
# define PR_SPEC_STORE_BYPASS 0
[213] Fix | Delete
# define PR_SPEC_INDIRECT_BRANCH 1
[214] Fix | Delete
/* Return and control values for PR_SET/GET_SPECULATION_CTRL */
[215] Fix | Delete
# define PR_SPEC_NOT_AFFECTED 0
[216] Fix | Delete
# define PR_SPEC_PRCTL (1UL << 0)
[217] Fix | Delete
# define PR_SPEC_ENABLE (1UL << 1)
[218] Fix | Delete
# define PR_SPEC_DISABLE (1UL << 2)
[219] Fix | Delete
# define PR_SPEC_FORCE_DISABLE (1UL << 3)
[220] Fix | Delete
# define PR_SPEC_DISABLE_NOEXEC (1UL << 4)
[221] Fix | Delete
[222] Fix | Delete
/* Reset arm64 pointer authentication keys */
[223] Fix | Delete
#define PR_PAC_RESET_KEYS 54
[224] Fix | Delete
# define PR_PAC_APIAKEY (1UL << 0)
[225] Fix | Delete
# define PR_PAC_APIBKEY (1UL << 1)
[226] Fix | Delete
# define PR_PAC_APDAKEY (1UL << 2)
[227] Fix | Delete
# define PR_PAC_APDBKEY (1UL << 3)
[228] Fix | Delete
# define PR_PAC_APGAKEY (1UL << 4)
[229] Fix | Delete
[230] Fix | Delete
/* Control reclaim behavior when allocating memory */
[231] Fix | Delete
#define PR_SET_IO_FLUSHER 57
[232] Fix | Delete
#define PR_GET_IO_FLUSHER 58
[233] Fix | Delete
[234] Fix | Delete
#endif /* _LINUX_PRCTL_H */
[235] Fix | Delete
[236] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function