How NOT to have already compiled modules (auto)load?

From: Kalin KOZHUHAROV (kalin_at_thinrope.net)
Date: 07/01/04

  • Next message: Wang, Zhenyu Z: "RE: thermal_zone, infos ?"
    Date:	Thu, 01 Jul 2004 11:39:16 +0900
    To: LKML <linux-kernel@vger.kernel.org>
    
    

    Sorry for the fuzzy subject, I couldn't formulate it better.

    I was trying to find info on that on Google, man and Documentation/*, but to no avail...

    I have a laptop with USB CD-ROM that is very rarely attached/used.
    I have sr_mod, etc. compiled as modules.
    On every boot it gets autoloaded, despite the fact that CD-ROM is not connected (no, I don't have another).

    My question is is there any good(tm) way to prevent this?
    One way I could think is to rename the module, but that is a bit bad.
    Is there a way to blacklist some modules?

    Or even better, to be able to manually modprobe (insmod) the so called blacklisted ones, but any other means to load them (such as dependency of another module, loaded by modprobe) should fail?

    Another example is the ipv6, which is difficult to unload at best, as sometimes I want to test something without ipv6.

    Any help and/or pointers are welcome!

    I am subscribed here, please do NOT CC me for the sake of less traffic.

    Kalin.

    -- 
    ||///_ o  *****************************
    ||//'_/>     WWW: http://ThinRope.net/
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Wang, Zhenyu Z: "RE: thermal_zone, infos ?"

    Relevant Pages

    • Re: [PATCH][SELINUX] 3/7 Add node controls
      ... > which allows network traffic to be controlled on the basis of remote ... > SELinux implementations; this is a rework within the constraints of the ... IPv6 at all? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.8.1 - unresolved xfrm symbols in ip6_tunnel
      ... Fix bug #3200 ... tristate "IPv6: IPv6-in-IPv6 tunnel" ... depends on IPV6 ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.7-rc3: waiting for eth0 to become free
      ... static void ipv4_link_failure(struct sk_buff *skb) ... However, reverting these ... changes breaks IPv6 a little bit for me. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Tons of "ICMPv6 checksum failed" in the logs
      ... With 2.6.5 I started experiemnting with IPv6 and now most everything is working OK. ... However I found tons of the following in kernel logs: ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)