public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 10/12] UML - Allow host capability usage to be disabled
@ 2005-09-01 22:17 Jeff Dike
  2005-09-02 10:39 ` [uml-devel] " Blaisorblade
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Dike @ 2005-09-01 22:17 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, user-mode-linux-devel, Bodo Stroesser

From: Bodo Stroesser <bstroesser@fujitsu-siemens.com>

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>

Index: test/arch/um/os-Linux/start_up.c
===================================================================
--- test.orig/arch/um/os-Linux/start_up.c	2005-09-01 16:42:42.000000000 -0400
+++ test/arch/um/os-Linux/start_up.c	2005-09-01 16:51:23.000000000 -0400
@@ -275,6 +275,30 @@
 	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)
 {


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [uml-devel] [PATCH 10/12] UML - Allow host capability usage to be disabled
  2005-09-01 22:17 [PATCH 10/12] UML - Allow host capability usage to be disabled Jeff Dike
@ 2005-09-02 10:39 ` Blaisorblade
  2005-09-02 17:13   ` Jeff Dike
  0 siblings, 1 reply; 3+ messages in thread
From: Blaisorblade @ 2005-09-02 10:39 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: Jeff Dike, akpm, linux-kernel, Bodo Stroesser

On Friday 02 September 2005 00:17, Jeff Dike wrote:
> From: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
>
> 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.
Is "skas0" cmd line option preserved?
> Signed-off-by: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
> Signed-off-by: Jeff Dike <jdike@addtoit.com>
>
> Index: test/arch/um/os-Linux/start_up.c
> ===================================================================
> --- test.orig/arch/um/os-Linux/start_up.c	2005-09-01 16:42:42.000000000
> -0400 +++ test/arch/um/os-Linux/start_up.c	2005-09-01 16:51:23.000000000
> -0400 @@ -275,6 +275,30 @@
>  	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)
>  {
>
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> User-mode-linux-devel mailing list
> User-mode-linux-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [uml-devel] [PATCH 10/12] UML - Allow host capability usage to be disabled
  2005-09-02 10:39 ` [uml-devel] " Blaisorblade
@ 2005-09-02 17:13   ` Jeff Dike
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Dike @ 2005-09-02 17:13 UTC (permalink / raw)
  To: Blaisorblade; +Cc: user-mode-linux-devel, akpm, linux-kernel, Bodo Stroesser

On Fri, Sep 02, 2005 at 12:39:23PM +0200, Blaisorblade wrote:
> Is "skas0" cmd line option preserved?

Yes, it is.

				Jeff

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-09-02 18:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-01 22:17 [PATCH 10/12] UML - Allow host capability usage to be disabled Jeff Dike
2005-09-02 10:39 ` [uml-devel] " Blaisorblade
2005-09-02 17:13   ` Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox