aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/um/os-Linux/start_up.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/um/os-Linux/start_up.c b/arch/um/os-Linux/start_up.c
index a3eab25f3791..a8b5b9d9c6ee 100644
--- a/arch/um/os-Linux/start_up.c
+++ b/arch/um/os-Linux/start_up.c
@@ -275,6 +275,30 @@ void os_early_checks(void)
275 check_ptrace(); 275 check_ptrace();
276} 276}
277 277
278static int __init noprocmm_cmd_param(char *str, int* add)
279{
280 proc_mm = 0;
281 return 0;
282}
283
284__uml_setup("noprocmm", noprocmm_cmd_param,
285"noprocmm\n"
286" Turns off usage of /proc/mm, even if host supports it.\n"
287" To support /proc/mm, the host needs to be patched using\n"
288" the current skas3 patch.\n\n");
289
290static int __init noptracefaultinfo_cmd_param(char *str, int* add)
291{
292 ptrace_faultinfo = 0;
293 return 0;
294}
295
296__uml_setup("noptracefaultinfo", noptracefaultinfo_cmd_param,
297"noptracefaultinfo\n"
298" Turns off usage of PTRACE_FAULTINFO, even if host supports\n"
299" it. To support PTRACE_FAULTINFO, the host needs to be patched\n"
300" using the current skas3 patch.\n\n");
301
278#ifdef UML_CONFIG_MODE_SKAS 302#ifdef UML_CONFIG_MODE_SKAS
279static inline void check_skas3_ptrace_support(void) 303static inline void check_skas3_ptrace_support(void)
280{ 304{