Skip to contentSkip to conversation

TRIVIAL 2.5.12 WP security warning

PATCH In review Rusty Russell 4 participants 4 messages May 1, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 TRIVIAL 2.5.12 WP security warning

Pavel Machek <[email protected]>: Warn users about machines with non-working WP bit:
Hi!

This might be good idea, as those machines are not safe for multiuser systems.

arch/i386/mm/init.c renamed from arch/i386/mm/init.c.orig +1 -1
@@ -384,7 +384,7 @@
 	local_flush_tlb();
 
 	if (!boot_cpu_data.wp_works_ok) {
-		printk("No.\n");
+		printk("No (that's security hole).\n");
 #ifdef CONFIG_X86_WP_WORKS_OK
 		panic("This kernel doesn't support CPU's with broken WP. Recompile it for a 386!");
 #endif

--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

#1 lore raw

arch/i386/mm/init.c line 388

Quoted 9 lines · Rusty Russell

Pavel Machek <[email protected]>: Warn users about machines with non-working WP bit:
Hi!

This might be good idea, as those machines are not safe for multiuser systems.

arch/i386/mm/init.c renamed from arch/i386/mm/init.c.orig +1 -1
-		printk("No.\n");
+		printk("No (that's security hole).\n");
 #ifdef CONFIG_X86_WP_WORKS_OK

Maybe be a little more explicit in the wording ?

"No. This system is insecure in a multiuser environment.\n" perhaps ?

Signature · 2 lines
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs
#2 lore raw
In reply to Rusty Russell

Hi!

Quoted 6 lines
Quoted 6 lines

Pavel Machek <[email protected]>: Warn users about machines with non-working WP bit:
Hi!

This might be good idea, as those machines are not safe for multiuser systems.

Quoted 7 lines

arch/i386/mm/init.c line 388

Quoted 3 lines
arch/i386/mm/init.c renamed from arch/i386/mm/init.c.orig +1 -1
-		printk("No.\n");
+		printk("No (that's security hole).\n");
 #ifdef CONFIG_X86_WP_WORKS_OK

Maybe be a little more explicit in the wording ?

"No. This system is insecure in a multiuser environment.\n" perhaps ?

Looks good.
Pavel

Signature · 2 lines
Casualities in World Trade Center: ~3k dead inside the building,
cryptography in U.S.A. and free speech in Czech Republic.
#3 lore raw
Quoted 3 lines · In article <[email protected]> you wrote:
Quoted 1 line

"No. This system is insecure in a multiuser environment.\n" perhaps ?

Looks good.

bonus points if you make it default to runlevel 1 ;)