Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 192201 - sys-apps/module-init-tools-3.2.2 - improve blacklisting
Summary: sys-apps/module-init-tools-3.2.2 - improve blacklisting
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 201653 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-11 18:09 UTC by Matthias Schwarzott
Modified: 2007-12-08 08:53 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
modprobe-apply-the-blacklist-to-all-aliases.patch (0001-modprobe-apply-the-blacklist-to-all-aliases.patch,1.07 KB, patch)
2007-09-11 18:09 UTC, Matthias Schwarzott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Schwarzott gentoo-dev 2007-09-11 18:09:15 UTC
The attached patch improves blacklisting to work on all aliases, and not just the ones provided by modules internally (pci:* and similar).

Original description:
From d2a39380938b248f721066fff43746bcfd2558e6 Mon Sep 17 00:00:00 2001
From: Kay Sievers <kay.sievers@vrfy.org>
Date: Thu, 30 Aug 2007 02:16:01 +0200
Subject: [PATCH] modprobe: apply the blacklist to all aliases

Module blacklist entries did not get applied to configured aliases.
Modprobe configuration files are often used to supply missing aliases
which are (now) not provided by kernel modules itself. This lets possibly
configured blacklist entries disable all alias resolving, regardless
of the source of the alias.

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>

The easiest test-case for this is:
modprobe pnp:dPNP0800

it loads pcspkt even when it is blacklisted, as this uses a user alias from /etc/modprobe.d/pnp-aliases
alias pnp:dPNP0800 pcspkr

with patch applied it no longer loads pcspkr.
Comment 1 Matthias Schwarzott gentoo-dev 2007-09-11 18:09:39 UTC
Created attachment 130610 [details, diff]
modprobe-apply-the-blacklist-to-all-aliases.patch
Comment 2 SpanKY gentoo-dev 2007-09-15 02:32:19 UTC
where was that e-mail sent to ?  cant find it via google ...
Comment 3 Matthias Schwarzott gentoo-dev 2007-09-18 09:15:11 UTC
The quoted text is from a git patch and no mail.
It is from Kay Sievers branch, but as he told me it should already be pulled to upstream branch.
Comment 4 Matthias Schwarzott gentoo-dev 2007-09-24 20:01:56 UTC
Is there any reason not to apply this?
Comment 5 SpanKY gentoo-dev 2007-10-08 22:52:58 UTC
3.4 now in the tree with this fix
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-12-08 08:53:54 UTC
*** Bug 201653 has been marked as a duplicate of this bug. ***