sociallyencrypted / Kernel-TaskStruct-Reader

A Linux Kernel Module to obtain the task struct of a given process and read it, written for the course CSE231: Operating Systems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A Linux Kernel Module to obtain the task struct of a given process and read it, written for the course CSE231: Operating Systems


Languages

Language:C 83.2%Language:Makefile 16.8%