Bug 8686 - modprobe: descends into dirs under /etc/modprobe.d/
Summary: modprobe: descends into dirs under /etc/modprobe.d/
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on: 8021
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-13 04:31 UTC by Mike Frysinger
Modified: 2017-04-06 13:24 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Frysinger 2016-02-13 04:31:07 UTC
+++ This bug was initially created as a clone of Bug #8021 +++

busybox modprobe will walk into subdirs of /etc/modprobe.d/ such as .git/ or .svn/ and processes any '*.conf' files under there.

However, the sysnopsis the modprobe.d(5) manual page (from kmod version 18)
suggests that only the files matching the following globs should be read as
config files:

  /etc/modprobe.d/*.conf

the recursive_action() helper currently does not allow one to limit the max depth.  the depth arg is used only whether to walk symlinks to prevent infinite loops.
Comment 1 Denys Vlasenko 2017-04-06 13:24:01 UTC
Fixed in

commit 4f0b540d08f5912b273c427218cc665512b12de5
Date:   Thu Apr 6 15:22:24 2017 +0200

    modprobe: do not descend into /etc/modprobe.d/DIR/.