Ciro Santilli d45ceace5d 0 8 年之前
..
Makefile d45ceace5d 0 8 年之前
README.md d45ceace5d 0 8 年之前
hello.c d45ceace5d 0 8 年之前
ins_rm_mod.c d45ceace5d 0 8 年之前

README.md

Host

Simple things that can be demonstrated by inserting a module into the currently running host. Tested on Ubuntu 16.04.

  1. hello
  2. ins_rm_mod.c

Rationale

This method easier to setup, but it is not recommended for development, as:

  • it may break your system.
  • you can't control which kernel version to use

Use VMs instead.

Usage

We only use it for super simple examples.

Build, insert and remove a hello world module:

make ins
make rm
make log

The last lines of the log should contain:

init_module
cleanup_module

Insert and remove a module from a C program:

make ins_rm_run