diff options
| author | Prarit Bhargava <[email protected]> | 2016-07-21 15:37:56 +0930 |
|---|---|---|
| committer | Rusty Russell <[email protected]> | 2016-08-04 10:16:53 +0930 |
| commit | be7de5f91fdc3a63ee01910c43f20db213445ce4 (patch) | |
| tree | bce5a3b202a589e962cffa2f8dec3d58fbbddbc7 /include/uapi/linux | |
| parent | 9502514f2808d29f6f2afa1c410e7808898dede1 (diff) | |
modules: Add kernel parameter to blacklist modules
Blacklisting a module in linux has long been a problem. The current
procedure is to use rd.blacklist=module_name, however, that doesn't
cover the case after the initramfs and before a boot prompt (where one
is supposed to use /etc/modprobe.d/blacklist.conf to blacklist
runtime loading). Using rd.shell to get an early prompt is hit-or-miss,
and doesn't cover all situations AFAICT.
This patch adds this functionality of permanently blacklisting a module
by its name via the kernel parameter module_blacklist=module_name.
[v2]: Rusty, use core_param() instead of __setup() which simplifies
things.
[v3]: Rusty, undo wreckage from strsep()
[v4]: Rusty, simpler version of blacklisted()
Signed-off-by: Prarit Bhargava <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Rusty Russell <[email protected]>
Cc: [email protected]
Signed-off-by: Rusty Russell <[email protected]>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions