diff options
author | Bodo Stroesser <bstroesser@fujitsu-siemens.com> | 2005-09-04 00:57:51 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-09-05 09:06:24 +0200 |
commit | d9838d86536fe17e76d19bf3e737100fae618396 (patch) | |
tree | d4609ec951f07bb1df284719eca0ed779992245e /arch/um | |
parent | [PATCH] uml: skas0 stubs now check system call return values (diff) | |
download | linux-d9838d86536fe17e76d19bf3e737100fae618396.tar.xz linux-d9838d86536fe17e76d19bf3e737100fae618396.zip |
[PATCH] uml: allow host capability usage to be disabled
Add new cmdline setups:
- noprocmm
- noptracefaultinfo
In case of testing, they can be used to switch off usage of
/proc/mm and PTRACE_FAULTINFO independently.
Signed-off-by: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/os-Linux/start_up.c | 24 |
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) check_ptrace(); } +static int __init noprocmm_cmd_param(char *str, int* add) +{ + proc_mm = 0; + return 0; +} + +__uml_setup("noprocmm", noprocmm_cmd_param, +"noprocmm\n" +" Turns off usage of /proc/mm, even if host supports it.\n" +" To support /proc/mm, the host needs to be patched using\n" +" the current skas3 patch.\n\n"); + +static int __init noptracefaultinfo_cmd_param(char *str, int* add) +{ + ptrace_faultinfo = 0; + return 0; +} + +__uml_setup("noptracefaultinfo", noptracefaultinfo_cmd_param, +"noptracefaultinfo\n" +" Turns off usage of PTRACE_FAULTINFO, even if host supports\n" +" it. To support PTRACE_FAULTINFO, the host needs to be patched\n" +" using the current skas3 patch.\n\n"); + #ifdef UML_CONFIG_MODE_SKAS static inline void check_skas3_ptrace_support(void) { |