Skip to content

Basic system call implementation for the linux kernel v5.8

Notifications You must be signed in to change notification settings

saim29/basic-system-call

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

basic_system_call

This repo includes a basic patch for a system call. I used this to understand how system calls are implemented in the linux kernel. The linux kernel version used for this project for v5.8. To successfully patch the linux kernel we first need to clone the linux kernel:

git clone https://github.com/torvalds/linux.git 

After successfully cloning the kernel do:

git checkout v5.8
patch < syscall.patch

After this, make and install the linux kernel. Various guides are available for this online hence I choose not to include this in the description.

Testing the system call

After installing and booting into the new kernel we need to test the system call. To test the system call:

cd test_sys_s2_ecrypt
make
./test -k 2 -s teststring

To see the kernel messages that the system call logs to the terminal run the following in a different terminal before running the test file:

dmesg -w

About

Basic system call implementation for the linux kernel v5.8

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published