aboutsummaryrefslogtreecommitdiffstats
path: root/fs/Kconfig.binfmt
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2013-04-30 18:27:44 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-30 20:04:04 -0400
commit2535e0d723e4d7723b030f39fb350e436bdb983f (patch)
tree579bc5baff75dac032bf0819176805a47fd83193 /fs/Kconfig.binfmt
parentd6d67e7231c97d535069970c840d33fc6c4350ee (diff)
fs: make binfmt support for #! scripts modular and removable
Add a new configuration option CONFIG_BINFMT_SCRIPT to configure support for interpreted scripts starting with "#!"; allow compiling out that support, or building it as a module. Embedded systems running exclusively compiled binaries could leave this support out, and systems that don't need scripts before mounting the root filesystem can build this as a module. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/Kconfig.binfmt')
-rw-r--r--fs/Kconfig.binfmt14
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/Kconfig.binfmt b/fs/Kconfig.binfmt
index 0efd1524b977..370b24cee4d8 100644
--- a/fs/Kconfig.binfmt
+++ b/fs/Kconfig.binfmt
@@ -65,6 +65,20 @@ config CORE_DUMP_DEFAULT_ELF_HEADERS
65 This config option changes the default setting of coredump_filter 65 This config option changes the default setting of coredump_filter
66 seen at boot time. If unsure, say Y. 66 seen at boot time. If unsure, say Y.
67 67
68config BINFMT_SCRIPT
69 tristate "Kernel support for scripts starting with #!"
70 default y
71 help
72 Say Y here if you want to execute interpreted scripts starting with
73 #! followed by the path to an interpreter.
74
75 You can build this support as a module; however, until that module
76 gets loaded, you cannot run scripts. Thus, if you want to load this
77 module from an initramfs, the portion of the initramfs before loading
78 this module must consist of compiled binaries only.
79
80 Most systems will not boot if you say M or N here. If unsure, say Y.
81
68config BINFMT_FLAT 82config BINFMT_FLAT
69 bool "Kernel support for flat binaries" 83 bool "Kernel support for flat binaries"
70 depends on !MMU && (!FRV || BROKEN) 84 depends on !MMU && (!FRV || BROKEN)