Referenece book: Designing BSD Rootkits An Introduction To Kernel Hacking.Apr.2007.ISBN.1593271425

<aside> ⚠️

Warnings

We use FreeBSD-14.0-Release version, which may be different from the version of reference book.

The point is, when facing the bug, please go to check FreebBSD developer handbook or manual on web. Reading with patience, try to solve problem on your own!

Of course, you can ask problem in discord forum. Discussing with peers is one of the main purposes of this book club~

</aside>

Objective:

In this assignment, you will learn how to implement a new system call in FreeBSD by creating a Kernel Loadable Module (KLD). The system call will be dynamically loaded into the kernel, registered in the system call table, and later executed via user-space code.

Prerequisite

Resources may be useful

Hand in this Practice

Knowledge base

System Call Overview

KLD Overview