diff options
author | Tom Cherry <tomcherry@google.com> | 2018-08-01 13:12:20 -0700 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2018-08-01 13:29:05 -0700 |
commit | 457e28f1292bbc1687038dfd15f4779ce3d8fd9e (patch) | |
tree | e1c4f3ab62e13ca49f9ee165849f6778146256fb /init/modalias_handler.cpp | |
parent | 081b710b2ee7f726f1bef282333c397006b6b37f (diff) |
ueventd: require opt-in for modalias handling
Some devices have modules.alias and modules.dep for modprobe and other
purposes but do not want to opt into ueventd auto loading their
modules. Therefore we add a flag that can be added to ueventd
configuration files to opt into this behavior.
Bug: 111916071
Bug: 112048758
Test: check that modules are loaded with this opt-in
Test: check that modules are not loaded without this opt-in
Change-Id: Ifb281b273059b4671eea1ca5bc726c9e79f3adfb
Diffstat (limited to 'init/modalias_handler.cpp')
-rw-r--r-- | init/modalias_handler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/modalias_handler.cpp b/init/modalias_handler.cpp index 1734a7e0f..1e0db5731 100644 --- a/init/modalias_handler.cpp +++ b/init/modalias_handler.cpp @@ -139,7 +139,7 @@ Result<Success> ModaliasHandler::InsmodWithDeps(const std::string& module_name, return Insmod(dependencies[0], args); } -void ModaliasHandler::HandleModaliasEvent(const Uevent& uevent) { +void ModaliasHandler::HandleUevent(const Uevent& uevent) { if (uevent.modalias.empty()) return; for (const auto& [alias, module] : module_aliases_) { |