Thread: kernel mod

  1. #1
    Registered User
    Join Date
    Apr 2004

    kernel mod

    is there some way u could "remotely" insmod to a kernel. thanx.
    even a fish would not have been in danger had it kept its mouth shut.

  2. #2
    Registered User
    Join Date
    Apr 2004
    insmod mymodule.

    or I suppose you could write something that lives in the kernel and listens to specific port for some kind of packet and then calls the module loader, but that strikes me as potentialy very insecure

  3. #3
    Me -=SoKrA=-'s Avatar
    Join Date
    Oct 2002
    If by remotely you mean from another computer, then yes.
    There is a solution that could mean less hasle than the ssh one awoodland suggests. You can issue commands to be used in the remote machine using the command line. So, on a console:
    [user@box1 ~]$ ssh -l root box2 "insmod modulename"
    Now all you need to do is change box2 for the machine you wanna insmod in and modulename for the actual name of the module.
    It will ask you for the password for box2 (unless it's in one fo the config files for ssh, I can't remember which), and you will get the output from the command in box2 on your prompt.
    You could also login as a normal user, and sudo the command, although it'd me more hassle.
    SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
    I say what I say, I mean what I mean.
    IDE: emacs + make + gcc and proud of it.

Popular pages Recent additions subscribe to a feed