From b6593deac457290e1c20954e07ad02987ec78764 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 27 Mar 2013 14:57:39 +0000 Subject: [PATCH] Update PR_* constants * process.c (prctl_options): Add more PR_* constants from linux/prctl.h. --- process.c | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/process.c b/process.c index de88c937..36f10ba6 100644 --- a/process.c +++ b/process.c @@ -159,6 +159,7 @@ static const struct xlat prctl_options[] = { #ifdef PR_PTHREADEXIT { PR_PTHREADEXIT, "PR_PTHREADEXIT" }, #endif + #ifdef PR_SET_PDEATHSIG { PR_SET_PDEATHSIG, "PR_SET_PDEATHSIG" }, #endif @@ -219,6 +220,12 @@ static const struct xlat prctl_options[] = { #ifdef PR_SET_SECCOMP { PR_SET_SECCOMP, "PR_SET_SECCOMP" }, #endif +#ifdef PR_CAPBSET_READ + { PR_CAPBSET_READ, "PR_CAPBSET_READ" }, +#endif +#ifdef PR_CAPBSET_DROP + { PR_CAPBSET_DROP, "PR_CAPBSET_DROP" }, +#endif #ifdef PR_GET_TSC { PR_GET_TSC, "PR_GET_TSC" }, #endif @@ -230,6 +237,42 @@ static const struct xlat prctl_options[] = { #endif #ifdef PR_SET_SECUREBITS { PR_SET_SECUREBITS, "PR_SET_SECUREBITS" }, +#endif +#ifdef PR_SET_TIMERSLACK + { PR_SET_TIMERSLACK, "PR_SET_TIMERSLACK" }, +#endif +#ifdef PR_GET_TIMERSLACK + { PR_GET_TIMERSLACK, "PR_GET_TIMERSLACK" }, +#endif +#ifdef PR_TASK_PERF_EVENTS_DISABLE + { PR_TASK_PERF_EVENTS_DISABLE, "PR_TASK_PERF_EVENTS_DISABLE" }, +#endif +#ifdef PR_TASK_PERF_EVENTS_ENABLE + { PR_TASK_PERF_EVENTS_ENABLE, "PR_TASK_PERF_EVENTS_ENABLE" }, +#endif +#ifdef PR_MCE_KILL + { PR_MCE_KILL, "PR_MCE_KILL" }, +#endif +#ifdef PR_MCE_KILL_GET + { PR_MCE_KILL_GET, "PR_MCE_KILL_GET" }, +#endif +#ifdef PR_SET_MM + { PR_SET_MM, "PR_SET_MM" }, +#endif +#ifdef PR_SET_CHILD_SUBREAPER + { PR_SET_CHILD_SUBREAPER, "PR_SET_CHILD_SUBREAPER" }, +#endif +#ifdef PR_GET_CHILD_SUBREAPER + { PR_GET_CHILD_SUBREAPER, "PR_GET_CHILD_SUBREAPER" }, +#endif +#ifdef PR_SET_NO_NEW_PRIVS + { PR_SET_NO_NEW_PRIVS, "PR_SET_NO_NEW_PRIVS" }, +#endif +#ifdef PR_GET_NO_NEW_PRIVS + { PR_GET_NO_NEW_PRIVS, "PR_GET_NO_NEW_PRIVS" }, +#endif +#ifdef PR_GET_TID_ADDRESS + { PR_GET_TID_ADDRESS, "PR_GET_TID_ADDRESS" }, #endif { 0, NULL }, }; -- 2.40.0