1 # SPDX-License-Identifier: GPL-2.0-only << 2 config SECURITY_LOADPIN 1 config SECURITY_LOADPIN 3 bool "Pin load of kernel files (module 2 bool "Pin load of kernel files (modules, fw, etc) to one filesystem" 4 depends on SECURITY && BLOCK 3 depends on SECURITY && BLOCK 5 help 4 help 6 Any files read through the kernel fi 5 Any files read through the kernel file reading interface 7 (kernel modules, firmware, kexec ima 6 (kernel modules, firmware, kexec images, security policy) 8 can be pinned to the first filesyste 7 can be pinned to the first filesystem used for loading. When 9 enabled, any files that come from ot 8 enabled, any files that come from other filesystems will be 10 rejected. This is best used on syste 9 rejected. This is best used on systems without an initrd that 11 have a root filesystem backed by a r 10 have a root filesystem backed by a read-only device such as 12 dm-verity or a CDROM. 11 dm-verity or a CDROM. 13 12 14 config SECURITY_LOADPIN_ENFORCE 13 config SECURITY_LOADPIN_ENFORCE 15 bool "Enforce LoadPin at boot" 14 bool "Enforce LoadPin at boot" 16 depends on SECURITY_LOADPIN 15 depends on SECURITY_LOADPIN 17 # Module compression breaks LoadPin un << 18 # the kernel. << 19 depends on !MODULES || (MODULE_COMPRES << 20 help 16 help 21 If selected, LoadPin will enforce pi 17 If selected, LoadPin will enforce pinning at boot. If not 22 selected, it can be enabled at boot 18 selected, it can be enabled at boot with the kernel parameter 23 "loadpin.enforce=1". 19 "loadpin.enforce=1". 24 << 25 config SECURITY_LOADPIN_VERITY << 26 bool "Allow reading files from certain << 27 depends on SECURITY_LOADPIN && DM_VERI << 28 help << 29 If selected LoadPin can allow readin << 30 that use dm-verity. LoadPin maintain << 31 digests it considers trusted. A veri << 32 considered trusted if its root diges << 33 of trusted digests. << 34 << 35 The list of trusted verity can be po << 36 on the LoadPin securityfs entry 'dm- << 37 expects a file descriptor of a file << 38 parameter. The file must be located << 39 start with the line: << 40 << 41 # LOADPIN_TRUSTED_VERITY_ROOT_DIGEST << 42 << 43 This is followed by the verity diges << 44 line. <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.