is there some way u could "remotely" insmod to a kernel. thanx.
Printable View
is there some way u could "remotely" insmod to a kernel. thanx.
ssh [email protected]
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
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:
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.Code:[user@box1 ~]$ ssh -l root box2 "insmod modulename"
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.