Skip to content

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

Notifications You must be signed in to change notification settings

sociallyencrypted/Kernel-TaskStruct-Reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published