Published
This resource is part of the Syself Autopilot 1.37 release. For the whole picture, see what's new in 1.37.
Since 1.36, every node in Syself Autopilot runs an immutable OS. Its layers are sealed and verified block by block, which prevents changes to OS files on disk. But protecting the disk isn't enough. The kernel also runs in memory, and a privileged pod can still access it. For example, it can use a tracer to read secrets directly from kernel memory.
The OS on disk is locked, but the kernel in memory is not.
Linux kernel lockdown closes this gap. It's been part of the upstream kernel since version 5.4. It restricts access to the running kernel, including operations that privileged workloads could otherwise perform.
Lockdown is best effort. It blocks the known interfaces, but it is not a guarantee that a privileged pod can never reach the kernel.
The challenge is that lockdown also blocks legitimate tools that need to read or modify the kernel. With Syself Autopilot 1.37, you can now choose how much protection each part of your cluster needs using the new kernelProfile variable. Set a default for the entire cluster, then override it for the control plane or individual worker pools. The platform applies the selected profile at boot.
Not every Kubernetes workload needs the same level of kernel protection. A hardware tuning tool needs to write to the kernel. An eBPF profiler needs to read it. A CI runner that builds code from outside contributors needs neither.
Instead of a single on/off switch, kernelProfile gives you three options. You can choose the right balance between security and compatibility for each pool.
standard is the default profile. Kernel lockdown stays disabled, and no additional kernel arguments are added. Use this profile for pools that run tools requiring write access to the kernel, such as hardware tuning tools.
hardened enables lockdown=integrity. Privileged pods can no longer modify the running kernel. This blocks loading any kexec image, MSR or PCI BAR writes, and writes through debugfs.
Reading kernel memory is still allowed, so eBPF tracing, profiling, and runtime security agents continue to work. Use this profile when you want to prevent kernel modifications while keeping your eBPF monitoring and security tools running.
sealed enables lockdown=confidentiality. It goes one step further: privileged pods can no longer read kernel memory either. Tracefs is empty, so kprobes and tracepoints cannot attach, and fentry programs and programs that read kernel memory fail to load. Only eBPF programs attached to raw tracepoints keep working. The profile also sets kernel.kptr_restrict=2, so the addresses in /proc/kallsyms read as zeros.
Use this profile for pools running untrusted or regulated workloads, such as CI runners that build code from outside contributors or services handling payment data. Only use it when nothing on the pool needs to inspect the kernel.
Module signing is separate from these profiles. Unsigned kernel modules never load, regardless of which profile you choose. Here's how the three profiles compare:
| Profile | Kernel writes | Kernel reads | eBPF tracing |
|---|---|---|---|
standard | Allowed | Allowed | Works |
hardened | Blocked | Allowed | Works |
sealed | Blocked | Blocked | Only raw-tracepoint programs work |
You don't have to apply the same security settings to every node. You can set kernelProfile at the cluster level and override it for the control plane or any worker pool. This lets you use different security profiles within a single cluster. For example, you could use hardened as the default and sealed for the control plane and a worker pool that runs untrusted workloads:
spec:
topology:
variables:
- name: kernelProfile
value: hardened
controlPlane:
variables:
overrides:
- name: kernelProfile
value: sealed
workers:
machineDeployments:
- class: workeramd64hcloud
name: md-untrusted
variables:
overrides:
- name: kernelProfile
value: sealed
In this example:
hardened. Privileged pods cannot write to the running kernel, while eBPF observability continues to work.sealed. This assumes you don't run tracers or security agents there.md-untrusted pool also uses sealed. It hosts untrusted workloads, and nothing on the pool needs to inspect the kernel.We tested the difference between standard and sealed on a Syself Autopilot 1.37 test cluster. We started two identical privileged pods using the bpftrace image, one on a standard node and the other on a sealed node. Both pods tried to read the name of the current task directly from kernel memory.
On the standard node, the read succeeds:
$ kubectl -n kp-test exec tracer-standard -- bpftrace -e 'BEGIN { printf("%s\n", curtask->comm); exit(); }'
Attaching 1 probe...
bpftrace
On the sealed node, the kernel refuses to load the program:
$ kubectl -n kp-test exec tracer-sealed -- bpftrace -e 'BEGIN { printf("%s\n", curtask->comm); exit(); }'
Attaching 1 probe...
ERROR: Error loading program: BEGIN (try -v)
The kernel log explains why:
Lockdown: bpftrace: use of bpf to read kernel RAM is restricted; see man kernel_lockdown.7
This is the difference between the two profiles in practice. standard allows access to kernel memory, while sealed blocks it.
Subscribe to The Syselfer, our newsletter, or add the RSS feed to your reader.
It depends on which profile you choose. With hardened, eBPF tracing, profiling, and runtime security agents continue to work. The integrity lockdown level blocks kernel writes but still allows reads. With sealed, eBPF profilers and tracers that use kprobes, tracepoints, or fentry, or that read kernel memory, stop working, and tracefs is empty. Only eBPF programs attached to raw tracepoints keep working.
For example, Tetragon's FAQ states that it fails to load under confidentiality lockdown, so keep Tetragon off sealed pools. Test other runtime security agents on one sealed pool before applying the profile to more pools.
You can keep tools that need kernel access off sealed nodes using a node affinity rule. Every node carries the autopilot.syself.com/kernel-profile label, which you can use to select the appropriate nodes.
Kernel lockdown isn't the only kernel security improvement in Syself Autopilot 1.37. BPF LSM (Linux Security Module) is now enabled on every node. It allows runtime security agents such as Tetragon to attach eBPF programs to the kernel's security hooks and deny operations at those hooks.
Before 1.37, BPF LSM wasn't active in the node kernel. Policies targeting LSM hooks could load, but they never attached and couldn't block anything. That's changed in 1.37: these policies can now attach and enforce their rules. Run Tetragon on standard or hardened pools. It doesn't load under sealed.
Kernel lockdown protects the running kernel, not the entire node. A privileged pod using sealed still has every other host access granted by its pod specification. This includes hostPath volumes and the host PID and network namespaces. It simply cannot read or write the running kernel.
That's why kernel lockdown and Pod Security Standards serve different purposes. Kernel lockdown protects the kernel from privileged pods. Pod Security Standards prevent privileged pods from running in your namespaces in the first place. Use both to protect your nodes.
The profile is part of each node's boot configuration. Changing it replaces nodes through the same rolling process used for other node updates. Changing the cluster-level value rolls every pool without its own override. This includes the control plane if it doesn't have an override. Changing an override rolls only the affected pool. If you have enough replicas spread across nodes, your workloads stay up during the rollout.
No. The profile is part of the node's boot configuration, so changing it requires a new node. This follows the immutable model: nodes are replaced rather than modified.
Choose hardened if you want to prevent privileged pods from writing to the running kernel while keeping eBPF observability working. Choose sealed for pools where nothing needs to inspect kernel memory. Before using it, check that your workloads and security agents still work with confidentiality lockdown enabled.
If you don't set kernelProfile, every node uses standard with kernel lockdown disabled.
Start with a trial, and our step-by-step guides will walk you through your first cluster deployment in minutes.
Tags
Syself Autopilot 1.37 adds a unikernel RuntimeClass (tech preview) that boots OCI-packaged unikernels in their own QEMU/KVM VMs on bare-metal nodes, while keeping normal Kubernetes networking and Services.
1.36 rebuilds the node OS as Syself Linux, installs nodes with a new provisioner, and runs Syself's own failover proxy, tunnel, and KubeGate for the control-plane path. Read the highlights, the full notes by area, and the upgrade steps.
Syself Autopilot 1.36 runs an immutable Kubernetes node OS, built from source and then sealed and verified block by block, so you can prove what a node runs.