Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 639 Bytes

File metadata and controls

35 lines (23 loc) · 639 Bytes

Kernel-TaskStruct-Reader

This implements a simple kernel module to take the pid of a process as a parameter and obtain the task_struct of the pid.

Installation

Clone this repo, cd into it, and run:

make

This will generate the taskStructReader.ko file.

Usage

You can run the module using:

sudo insmod taskStructReader.ko pidint=<insert pid here>

You can check the output using:

sudo dmesg -t | tail -4

You can remove the module using:

sudo rmmod taskStructReader

References

The Linux Kernel Module Programming