kernel mod

This is a discussion on kernel mod within the Linux Programming forums, part of the Platform Specific Boards category; is there some way u could "remotely" insmod to a kernel. thanx....

  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    58

    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
    Posts
    9
    ssh root@myhost.net
    insmod mymodule.
    ^D

    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
    Location
    Europe
    Posts
    448
    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:
    Code:
    [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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21