Bug 8686

Summary: modprobe: descends into dirs under /etc/modprobe.d/
Product: Busybox Reporter: Mike Frysinger <vapier>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: minor CC: busybox-cvs, jorrit, unassigned
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Bug Depends on: 8021    
Bug Blocks:    

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/.