forked from checkpoint-restore/criu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prctl.h
77 lines (70 loc) · 1.43 KB
/
prctl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#ifndef __CR_PRCTL_H__
#define __CR_PRCTL_H__
#include "int.h"
#ifndef PR_SET_NAME
# define PR_SET_NAME 15
#endif
#ifndef PR_GET_NAME
# define PR_GET_NAME 16
#endif
#ifndef PR_SET_SECCOMP
# define PR_SET_SECCOMP 22
#endif
#ifndef PR_CAPBSET_READ
# define PR_CAPBSET_READ 23
#endif
#ifndef PR_CAPBSET_DROP
# define PR_CAPBSET_DROP 24
#endif
#ifndef PR_GET_SECUREBITS
# define PR_GET_SECUREBITS 27
#endif
#ifndef PR_SET_SECUREBITS
# define PR_SET_SECUREBITS 28
#endif
#ifndef PR_GET_DUMPABLE
# define PR_GET_DUMPABLE 3
#endif
#ifndef PR_SET_DUMPABLE
# define PR_SET_DUMPABLE 4
#endif
#ifndef PR_SET_MM
#define PR_SET_MM 35
# define PR_SET_MM_START_CODE 1
# define PR_SET_MM_END_CODE 2
# define PR_SET_MM_START_DATA 3
# define PR_SET_MM_END_DATA 4
# define PR_SET_MM_START_STACK 5
# define PR_SET_MM_START_BRK 6
# define PR_SET_MM_BRK 7
# define PR_SET_MM_ARG_START 8
# define PR_SET_MM_ARG_END 9
# define PR_SET_MM_ENV_START 10
# define PR_SET_MM_ENV_END 11
# define PR_SET_MM_AUXV 12
# define PR_SET_MM_EXE_FILE 13
#endif
#ifndef PR_SET_MM_MAP
# define PR_SET_MM_MAP 14
# define PR_SET_MM_MAP_SIZE 15
struct prctl_mm_map {
u64 start_code;
u64 end_code;
u64 start_data;
u64 end_data;
u64 start_brk;
u64 brk;
u64 start_stack;
u64 arg_start;
u64 arg_end;
u64 env_start;
u64 env_end;
u64 *auxv;
u32 auxv_size;
u32 exe_fd;
};
#endif
#ifndef PR_GET_TID_ADDRESS
# define PR_GET_TID_ADDRESS 40
#endif
#endif /* __CR_PRCTL_H__ */