All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Harden check for used modules in hostonly mode
@ 2010-05-09 18:23 Andrey Borzenkov
  2010-08-04  6:55 ` Andrey Borzenkov
  2010-08-04 16:31 ` Harald Hoyer
  0 siblings, 2 replies; 3+ messages in thread
From: Andrey Borzenkov @ 2010-05-09 18:23 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

Make sure that we do not accept module name which is substring of
some other module name. This resulted in piix being mistakenly loaded
together with ata_piix. It completely broke DVD access here.

Signed-off-by: Andrey Borzenkov <arvidjaar-JGs/UdohzUI@public.gmane.org>

---

 dracut-functions |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dracut-functions b/dracut-functions
index fdcfb7e..ebf09c0 100755
--- a/dracut-functions
+++ b/dracut-functions
@@ -502,7 +502,7 @@ instmods() {
 	        [[ -f $initdir/$1 ]] && { shift; continue; }
 		# If we are building a host-specific initramfs and this
 		# module is not already loaded, move on to the next one.
-		[[ $hostonly ]] && ! grep -q "${mod//-/_}" /proc/modules && \
+		[[ $hostonly ]] && ! grep -qe "\<${mod//-/_}\>" /proc/modules && \
 	        ! echo $add_drivers | grep -qe "\<${mod}\>" &&	{
 		    shift; continue; 
 		}

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-04 16:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-09 18:23 [PATCH] Harden check for used modules in hostonly mode Andrey Borzenkov
2010-08-04  6:55 ` Andrey Borzenkov
2010-08-04 16:31 ` Harald Hoyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.