Re: [PATCH] Deprecate exec_usermodehelper, fix request_module.

From: Marcel Holtmann (marcel@holtmann.org)
Date: Thu Jan 02 2003 - 12:14:17 EST


Hi Rusty,

> I got a report from Urban Widmark that modprobe dropped its privs on
> executing an install command: turns out request_module
> (ie. exec_usermodehelper) doesn't set the real uid or gid (so bash
> drops privs).
>
> These efforts to "clean" the current process are *always* going to be
> buggy: we should use the event thread all the time, rather than
> forking a random thread and trying to clean it. This fixes
> request_module to do that (kevent threads can't block, so we
> double-fork).
>
> There are still three
> (obscure) users of exec_usermodehelper in the tree:
>
> drivers/net/hamradio/baycom_epp.c
> drivers/bluetooth/bt3c_cs.c
> arch/i386/mach-voyager/voyager_thread.c

for the bt3c_cs driver I need to run a user space program that downloads
the firmware into the card and the kernel part have to wait until this
program has finished. So what is the best way to do this now?

Regards

Marcel

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



This archive was generated by hypermail 2b29 : Tue Jan 07 2003 - 22:00:18 EST