10 #include <linux/kernel.h> 11 #include <uapi/linux/prctl.h> 13 #include "trace/beauty/generated/prctl_option_array.c" 31 if (option == PR_SET_MM)
47 if (option == PR_SET_MM)
55 unsigned long option = arg->
val;
63 const u8 all_but2 = SPO_ARG3 | SPO_ARG4 | SPO_ARG5 | SPO_ARG6;
64 const u8 all = SPO_ARG2 | all_but2;
66 [PR_GET_DUMPABLE] = all,
67 [PR_SET_DUMPABLE] = all_but2,
69 [PR_GET_CHILD_SUBREAPER] = all_but2,
70 [PR_SET_CHILD_SUBREAPER] = all_but2,
71 [PR_GET_SECUREBITS] = all,
72 [PR_SET_SECUREBITS] = all_but2,
73 [PR_SET_MM] = SPO_ARG4 | SPO_ARG5 | SPO_ARG6,
74 [PR_GET_PDEATHSIG] = all,
75 [PR_SET_PDEATHSIG] = all_but2,
78 if (option < ARRAY_SIZE(masks))
79 arg->
mask |= masks[option];
#define DEFINE_STRARRAY(array)
size_t syscall_arg__scnprintf_hex(char *bf, size_t size, struct syscall_arg *arg)
size_t syscall_arg__scnprintf_long(char *bf, size_t size, struct syscall_arg *arg)
size_t syscall_arg__scnprintf_prctl_arg3(char *bf, size_t size, struct syscall_arg *arg)
size_t syscall_arg__scnprintf_prctl_option(char *bf, size_t size, struct syscall_arg *arg)
static size_t prctl__scnprintf_set_mm(int option, char *bf, size_t size)
static size_t prctl__scnprintf_option(int option, char *bf, size_t size)
size_t strarray__scnprintf(struct strarray *sa, char *bf, size_t size, const char *intfmt, int val)
unsigned long syscall_arg__val(struct syscall_arg *arg, u8 idx)
size_t syscall_arg__scnprintf_prctl_arg2(char *bf, size_t size, struct syscall_arg *arg)