Skip to contentSkip to conversation

Hide dangerous configuration options

RFC New Matthias Juchem 1 participant 1 message Dec 13, 2002 VFS

lore
Share & tools
lore
#0 lore raw

RFC 1/1 Hide dangerous configuration options

Hi.

The patch below adds a configuration option 'DANGEROUS'.

Idea is to prevent people from enabling such options unintentionally.

Set to N, options which were labelled DANGEROUS are hidden, set to Y, they are show.

DANGEROUS does not depend on EXPERIMENTAL, because there are options that are dangerous but not experimental.

Patch is against 2.5.51.

Regards,
Matthias

arch/ppc/Kconfig +1 -1
diff -urN linux-2.5.51/arch/ppc/Kconfig linux-2.5.51-mj/arch/ppc/Kconfig
@@ -694,7 +694,7 @@
 
 config TAU_INT
 	bool "Interrupt driven TAU driver (DANGEROUS)"
-	depends on TAU
+	depends on TAU && DANGEROUS
 	---help---
 	  The TAU supports an interrupt driven mode which causes an interrupt
 	  whenever the temperature goes out of range. This is the fastest way
drivers/ide/Kconfig +1 -1
diff -urN linux-2.5.51/drivers/ide/Kconfig linux-2.5.51-mj/drivers/ide/Kconfig
@@ -424,7 +424,7 @@
 
 config WDC_ALI15X3
 	bool "ALI M15x3 WDC support (DANGEROUS)"
-	depends on BLK_DEV_ALI15X3
+	depends on BLK_DEV_ALI15X3 && DANGEROUS
 	---help---
 	  This allows for UltraDMA support for WDC drives that ignore CRC
 	  checking. You are a fool for enabling this option, but there have
fs/Kconfig +4 -4
diff -urN linux-2.5.51/fs/Kconfig linux-2.5.51-mj/fs/Kconfig
@@ -159,7 +159,7 @@
 
 config ADFS_FS_RW
 	bool "ADFS write support (DANGEROUS)"
-	depends on ADFS_FS
+	depends on ADFS_FS && DANGEROUS
 	help
 	  If you say Y here, you will be able to write to ADFS partitions on
 	  hard drives and ADFS-formatted floppy disks. This is experimental
@@ -773,7 +773,7 @@
 
 config NTFS_RW
 	bool "NTFS write support (DANGEROUS)"
-	depends on NTFS_FS && EXPERIMENTAL
+	depends on NTFS_FS && EXPERIMENTAL && DANGEROUS
 	help
 	  This enables the experimental write support in the NTFS driver.
 
@@ -916,7 +916,7 @@
 
 config QNX4FS_RW
 	bool "QNX4FS write support (DANGEROUS)"
-	depends on QNX4FS_FS && EXPERIMENTAL
+	depends on QNX4FS_FS && EXPERIMENTAL && DANGEROUS
 	help
 	  Say Y if you want to test write support for QNX4 file systems.
 
@@ -1098,7 +1098,7 @@
 
 config UFS_FS_WRITE
 	bool "UFS file system write support (DANGEROUS)"
-	depends on UFS_FS && EXPERIMENTAL
+	depends on UFS_FS && EXPERIMENTAL && DANGEROUS
 	help
 	  Say Y here if you want to try writing to UFS partitions. This is
 	  experimental, so you should back up your UFS partitions beforehand.
init/Kconfig +7 -0
diff -urN linux-2.5.51/init/Kconfig linux-2.5.51-mj/init/Kconfig
@@ -32,6 +32,13 @@
 	  you say Y here, you will be offered the choice of using features or
 	  drivers that are currently considered to be in the alpha-test phase.
 
+config DANGEROUS
+	bool "Prompt for dangerous code/drivers"
+	---help---
+	  If you say Y here, options that enable dangerous code will be shown.
+
+	  Say N.
+
 endmenu