Coding a Linux kernel module in C

Published: 25 April 2026
on channel: dr Jonas Birch
6,034
419

A loadable kernel module (lkm) taps into the internals of the core operating system, modifying its behavior. In this series we'll try to code a module that hijacks the kill() system call, disables it and replacing it with our own function. Thus making our selected process immortable, even for root.

Kernel programming is very low-level but the actual code is not as complicated as one might think. It's pretty difficult to debug and troubleshoot it though, but the code is rather easy to understand since you mostly use standard macros and functions to get things done. We will however go a little bit beyond what is standard.

After watching this series, you may put the prestigeous "Linux kernel developer" on your resumé/CV. You will learn the internals of the operating system, and get a better understanding of the Linux internals as well as many low-level kernel security features.

Exciting stuff, no? Let's get started!

#programming #linux #kernel #module #lkm

References

1. Become a channel member and get several benefits, check out:
   / @dr-jonas-birch  

2. Linux kernel module programming guide
https://sysprog21.github.io/lkmpg/

3. Bruno Ciccarino Github
https://github.com/BrunoCiccarino/Lin...

00:00:00 Introduction
00:08:36 Project setup
01:05:41 Our first kernel module
01:28:19 Replacing system calls
02:58:04 SCT finding script
04:49:00 Troubleshoot


On this page of the site you can watch the video online Coding a Linux kernel module in C with a duration of hours minute second in good quality, which was uploaded by the user dr Jonas Birch 25 April 2026, share the link with friends and acquaintances, this video has already been watched 6,034 times on youtube and it was liked by 419 viewers. Enjoy your viewing!