kernel
settings.kernel.*
)Setting list for settings.kernel
settings.kernel.lockdown
settings.kernel.modules.<name>.allowed
settings.kernel.modules.<name>.autoload
settings.kernel.sysctl
Full Reference
settings.kernel.lockdown
Sets the mode for the lockdown Linux security module.
Warning
Changing this setting from confidentiality
to integrity
or integrity
to none
requires a reboot to take effect.
Default: integrity
except for nvidia
and dev
variant flavours which use none
confidentiality
: blocks most methods of reading kernel memory from userspace. Tools that rely on reading kernel memory may not work in this mode.integrity
: blocks most methods for overwriting kernel memory or modifying kernel code. This mode prevents unsigned kernel modules from loading.none
: disables protection by the Lockdown security module.
settings.kernel.modules.<name>.allowed
Allows (true
) or disallows (false
) the loading of kernel module <name>
.
Warning
This setting only affects loading of kernel modules at boot time. Changing the setting of already loaded (running) kernel modules to false
has no affect until reboot.
true
false
Note
Use settings.boot.kernel-parameters
to set module parameters through the kernel command line.
[settings.kernel.modules.sctp]
allowed = false
[settings.kernel.modules.udf]
allowed = true
apiclient set settings.kernel.modules.sctp.allowed=false
apiclient set settings.kernel.modules.udf.allowed=true
settings.kernel.modules.<name>.autoload
If true
, the kernel <name>
module loads automatically on boot.
true
false
Note
You must use this setting in conjuction with settings.kernel.modules.<name>.allowed
on the same module.
This ensures that the OS doesn’t auto-load a blocked module.
Use settings.boot.kernel-parameters
to set module parameters through the kernel command line.
[settings.kernel.modules.ip_vs_lc]
allowed = true
autoload = true
apiclient set settings.kernel.modules.ip_vs_lc.allowed=true settings.kernel.modules.ip_vs_lc.autoload=true
settings.kernel.sysctl
Sets kernel parameters.
Note
Add quotes ("
) around keys as they often contain dots (.
) as well as around values.
[settings.kernel.sysctl]
"user.max_user_namespaces" = "16384"
"vm.max_map_count" = "262144"