Security support in Linux kernel


New features

Lockdown

Since Linux 5.4.

⚲ API:

/sys/kernel/security/lockdown
man 7 kernel_lockdown – kernel image access prevention feature

Landlock

Landlock allows to sandbox applications.


👁 example: samples/landlock/sandboxer.c src


📚 References:

Landlock: unprivileged access control doc
Landlock doc

Randomize kernel stack offset

linux/randomize_kstack.h inc
add_random_kstack_offset id