Re: Exec'ing user space helper programs

From: Chris Proctor (chrisp_42@bigpond.com)
Date: Sat Feb 12 2000 - 18:19:19 EST

  • Next message: Linus Torvalds: "Re: 2.3.43 alpha broken with >2g of ram"

    On Sat, Feb 12, 2000 at 09:56:16AM -0800, Linus Torvalds wrote:
    >
    >
    > On Sat, 12 Feb 2000, Thomas Sailer wrote:
    > >
    > > Exec'ing a user mode program however is not so straigtforward,
    > > everytime I look into kmod.c the code gets more complex 8-)
    > > Up to now I just copied the code from kmod.c into my driver,
    > > but the code duplication starts to get annoying, furthermore
    > > a couple of routines (free_uid and flush_signal_handlers)
    > > are not even exported.
    > >
    > > So I'd like to export the exec-facility of kmod.
    > >
    > > The following is a patch to do this.
    > >
    > > Comments?
    >
    > Looks good. This is something we'll probably need for other things:
    > hot-plug devices need to inform user space about [dis-]appearance etc.
    > Applied.

    In 2.3.44 this change causes one of the ppp-* files to not compile
    if CONFIG_KMOD is not defined. The following patch fixes it for me:

    --- include/linux/kmod.h.orig Sun Feb 13 08:44:07 2000
    +++ include/linux/kmod.h Sun Feb 13 09:59:25 2000
    @@ -3,6 +3,7 @@
     */
     
     #include <linux/config.h>
    +#include <linux/errno.h>
     
     #ifdef CONFIG_KMOD
     extern int request_module(const char * name);

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Sat Feb 12 2000 - 19:00:36 EST