kernel module
A piece of code that can be loaded into a running kernel to add a feature such as a driver.
In more detail
Kernel modules add support for hardware, filesystems or network features without rebooting. They are global: loading one affects the whole host and every container on it, and namespaces do not hide them. Containers normally cannot load modules, and letting them do so (for example with --privileged) gives away control of the host.
Related terms
- kernel — The core of an operating system that controls the hardware and decides what every program is allowed to do.
- privileged container — A container started with --privileged, which removes almost all isolation and gives it the powers of root on the host.
- Linux capabilities — Separate pieces of root power, such as binding low ports or changing file owners, that can be granted or removed one by one.
Taught in
- Runtime Anomaly Detection with Falco & eBPF — Cloud Security & DevSecOps Engineering
- Namespaces And Cgroups: Isolation And Limits — Docker Architecture & Production Containers